Update build.ts

Rename output folder
This commit is contained in:
CN 2024-01-04 09:59:47 +01:00 committed by GitHub
parent b41ff1d75d
commit 48ad13b98f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,14 +3,13 @@ import { createWriteStream, existsSync, mkdirSync } from 'fs';
import { name } from '../package.json';
const dir = 'out';
const dir = 'dist';
const file = `${name}.jar`;
const path = `${dir}/${file}`;
!existsSync(dir) && mkdirSync(dir);
const output = createWriteStream(`${__dirname}/../${path}`);
const archive = archiver('zip');
archive.on('error', (error) => {