mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: add libzip
This commit is contained in:
4 files changed
+16
-6
No files matched your search
@@ -33,3 +33,6 @@ if (!global.Hydro) {
|
||||
global.addons = [];
|
||||
}
|
||||
global.app = new (require('./context').Context)();
|
||||
process.on('exit', () => {
|
||||
app.stop();
|
||||
});
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ZipFS, ZipOpenFS } from '@yarnpkg/libzip';
|
||||
import AdmZip from 'adm-zip';
|
||||
import _ from 'lodash';
|
||||
import { ObjectId as ObjectID } from 'mongodb';
|
||||
@@ -9,8 +10,9 @@ export { WebSocket, WebSocketServer } from '@hydrooj/framework';
|
||||
export * from './utils';
|
||||
export * from './interface';
|
||||
export * from './typeutils';
|
||||
export * as LibZip from '@yarnpkg/libzip';
|
||||
export {
|
||||
Schema, AdmZip, superagent, _, ObjectID,
|
||||
Schema, AdmZip, superagent, _, ObjectID, ZipFS, ZipOpenFS,
|
||||
};
|
||||
export const definePlugin = <T = never>(args: {
|
||||
using?: keyof Context[];
|
||||
|
||||
Reference in new issue
Block a user