core setup fixes
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { build } from 'esbuild'
|
||||
|
||||
build({
|
||||
entryPoints: ['./src/index.ts'],
|
||||
bundle: true,
|
||||
format: 'cjs',
|
||||
platform: 'node',
|
||||
target: 'node10.4',
|
||||
outdir: './dist',
|
||||
}).then(r => console.log('Successfully build.'))
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"compilationOptions": {
|
||||
"followSymlinks": true,
|
||||
"preferredConfigPath": "../tsconfig.json"
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
"filePath": "./src/index.ts",
|
||||
"outFile": "./dist/index.d.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
-2
@@ -7,8 +7,7 @@
|
||||
"dist/**/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup && pnpm types",
|
||||
"types": "dts-bundle-generator --config dts.config.json"
|
||||
"build": "tsup"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ragempcommunity/types-server": "^2.1.8",
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
/// <reference types="@ragempcommunity/types-server" />
|
||||
import '@ragempcommunity/types-server'
|
||||
|
||||
import type {
|
||||
RageFW_ICustomServerEvent,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"node_modules"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"incremental": false,
|
||||
"composite": false,
|
||||
"target": "ES2022",
|
||||
"experimentalDecorators": true,
|
||||
@@ -13,7 +13,7 @@
|
||||
"moduleDetection": "auto",
|
||||
"module": "CommonJS",
|
||||
"resolveJsonModule": true,
|
||||
"declaration": false,
|
||||
"declaration": true,
|
||||
"declarationMap": false,
|
||||
"sourceMap": false,
|
||||
"downlevelIteration": false,
|
||||
@@ -21,9 +21,6 @@
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"typeRoots": [
|
||||
"@ragempcommunity/types-server"
|
||||
]
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ export default defineConfig({
|
||||
outDir: './dist',
|
||||
format: ['cjs'],
|
||||
noExternal: ['rage-rpc'],
|
||||
dts: true,
|
||||
splitting: false,
|
||||
sourcemap: false,
|
||||
clean: true,
|
||||
|
||||
Reference in New Issue
Block a user