mirror of
https://github.com/rilaxik/fivem-rpc.git
synced 2026-09-28 01:29:13 +00:00
chore(repo): migrate from tsup to tsdown
This commit is contained in:
+13
-5
@@ -31,17 +31,25 @@
|
||||
"readme.md",
|
||||
"license.md"
|
||||
],
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.cts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"build": "tsdown",
|
||||
"prepublishOnly": "bun run build",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@entityseven/fivem-rpc-shared-types": "workspace:*",
|
||||
"@microsoft/api-extractor": "^7.47.9",
|
||||
"tsup": "^8.3.0"
|
||||
"tsdown": "^0.23.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@entityseven/fivem-rpc-shared-types": "^1.0.0",
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import { defineConfig } from 'tsdown'
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm', 'cjs'],
|
||||
platform: 'neutral',
|
||||
target: 'es2022',
|
||||
fixedExtension: true,
|
||||
dts: true,
|
||||
exports: true,
|
||||
})
|
||||
@@ -1,14 +0,0 @@
|
||||
import { defineConfig } from 'tsup'
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
outDir: './dist',
|
||||
target: 'node16',
|
||||
platform: 'node',
|
||||
format: ['cjs'],
|
||||
splitting: false,
|
||||
sourcemap: false,
|
||||
clean: false,
|
||||
experimentalDts: true,
|
||||
noExternal: [/.*/],
|
||||
})
|
||||
Reference in New Issue
Block a user