mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
build: refactor build system (#8324)
This commit is contained in:
3
packages/voice/build.config.ts
Normal file
3
packages/voice/build.config.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createUnbuildConfig } from '../../build.config';
|
||||
|
||||
export default createUnbuildConfig();
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "0.12.0",
|
||||
"description": "Implementation of the Discord Voice API for node.js",
|
||||
"scripts": {
|
||||
"build": "tsup && node scripts/postbuild.mjs",
|
||||
"build": "unbuild",
|
||||
"test": "jest --coverage",
|
||||
"lint": "prettier --check . && eslint src __tests__ --ext mjs,js,ts",
|
||||
"format": "prettier --write . && eslint src __tests__ --ext mjs,js,ts --fix",
|
||||
@@ -13,12 +13,12 @@
|
||||
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/voice/*'",
|
||||
"release": "cliff-jumper"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"typings": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js",
|
||||
"require": "./dist/index.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"directories": {
|
||||
@@ -73,9 +73,11 @@
|
||||
"jest-websocket-mock": "^2.3.0",
|
||||
"mock-socket": "^9.1.5",
|
||||
"prettier": "^2.7.1",
|
||||
"rollup-plugin-typescript2": "0.32.1",
|
||||
"tsup": "^6.1.3",
|
||||
"tweetnacl": "^1.0.3",
|
||||
"typescript": "^4.7.4"
|
||||
"typescript": "^4.7.4",
|
||||
"unbuild": "^0.7.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.9.0"
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
export {
|
||||
AudioPlayer,
|
||||
AudioPlayerStatus,
|
||||
AudioPlayerState,
|
||||
type AudioPlayerState,
|
||||
NoSubscriberBehavior,
|
||||
createAudioPlayer,
|
||||
AudioPlayerBufferingState,
|
||||
AudioPlayerIdleState,
|
||||
AudioPlayerPausedState,
|
||||
AudioPlayerPlayingState,
|
||||
CreateAudioPlayerOptions,
|
||||
type AudioPlayerBufferingState,
|
||||
type AudioPlayerIdleState,
|
||||
type AudioPlayerPausedState,
|
||||
type AudioPlayerPlayingState,
|
||||
type CreateAudioPlayerOptions,
|
||||
} from './AudioPlayer';
|
||||
|
||||
export { AudioPlayerError } from './AudioPlayerError';
|
||||
|
||||
export { AudioResource, CreateAudioResourceOptions, createAudioResource } from './AudioResource';
|
||||
export { AudioResource, type CreateAudioResourceOptions, createAudioResource } from './AudioResource';
|
||||
|
||||
export { PlayerSubscription } from './PlayerSubscription';
|
||||
|
||||
|
||||
@@ -5,17 +5,17 @@ export * from './receive';
|
||||
|
||||
export {
|
||||
VoiceConnection,
|
||||
VoiceConnectionState,
|
||||
type VoiceConnectionState,
|
||||
VoiceConnectionStatus,
|
||||
VoiceConnectionConnectingState,
|
||||
VoiceConnectionDestroyedState,
|
||||
VoiceConnectionDisconnectedState,
|
||||
VoiceConnectionDisconnectedBaseState,
|
||||
VoiceConnectionDisconnectedOtherState,
|
||||
VoiceConnectionDisconnectedWebSocketState,
|
||||
type VoiceConnectionConnectingState,
|
||||
type VoiceConnectionDestroyedState,
|
||||
type VoiceConnectionDisconnectedState,
|
||||
type VoiceConnectionDisconnectedBaseState,
|
||||
type VoiceConnectionDisconnectedOtherState,
|
||||
type VoiceConnectionDisconnectedWebSocketState,
|
||||
VoiceConnectionDisconnectReason,
|
||||
VoiceConnectionReadyState,
|
||||
VoiceConnectionSignallingState,
|
||||
type VoiceConnectionReadyState,
|
||||
type VoiceConnectionSignallingState,
|
||||
} from './VoiceConnection';
|
||||
|
||||
export { JoinConfig, getVoiceConnection, getVoiceConnections, getGroups } from './DataStore';
|
||||
export { type JoinConfig, getVoiceConnection, getVoiceConnections, getGroups } from './DataStore';
|
||||
|
||||
Reference in New Issue
Block a user