This commit is contained in:
Oleksandr Honcharov
2024-06-10 17:28:22 +03:00
parent bea9d570ad
commit 5064fb6347
8 changed files with 4767 additions and 6507 deletions
+11 -4
View File
@@ -1,9 +1,16 @@
import { build } from 'esbuild'
import { umdWrapper } from 'esbuild-plugin-umd-wrapper'
build({
entryPoints: ['./src/index.ts'],
format: 'esm',
bundle: true,
format: 'umd',
platform: 'node',
target: 'node10.4',
outdir: './dist',
}).then(r => console.log('Successfully build.'))
plugins: [
umdWrapper({
libraryName: 'fw',
}),
],
}).then(() => {
console.log('Successfully build. Executing types build...')
})
+3 -5
View File
@@ -7,15 +7,13 @@
"dist/**/*"
],
"scripts": {
"build": "node --es-module-specifier-resolution=node build.js",
"build": "node --es-module-specifier-resolution=node build.js && pnpm types",
"types": "dts-bundle-generator --config dts.config.json"
},
"peerDependencies": {
"rage-fw-shared-types": "workspace:^"
},
"dependencies": {
"@ragempcommunity/types-client": "^2.1.8",
"rage-rpc": "^0.4.0",
"@ragempcommunity/types-client": "^2.1.8"
"rage-fw-shared-types": "workspace:^"
},
"keywords": [],
"author": "SashaGoncharov19",
+3 -1
View File
@@ -25,7 +25,9 @@ class Player {
}
}
export const fw = {
const fw = {
event: new Client(),
player: new Player(),
}
export default fw