diff --git a/core/src/controller/socket.ts b/core/src/controller/socket.ts index 776066e9..ea756a1c 100644 --- a/core/src/controller/socket.ts +++ b/core/src/controller/socket.ts @@ -3,7 +3,7 @@ import { createServer } from 'http' import { Server } from 'socket.io' import ws from 'ws' import { Event } from './events.js' -import eiows from 'node_modules/eiows/dist/eiows.js' +import eiows from '../../node_modules/eiows/dist/eiows.js' export class SocketController { protected readonly app: Application diff --git a/plugins/plugin_base/package-lock.json b/plugins/plugin_base/package-lock.json index b62cc6f7..574cc28e 100644 --- a/plugins/plugin_base/package-lock.json +++ b/plugins/plugin_base/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.0", "license": "LSC", "dependencies": { - "bufferutil": "*", "cron-parser": "^4.9.0", "discord.js": "^14.15.2", "glob": "^10.3.15", @@ -17,8 +16,7 @@ "node-forge": "^1.3.1", "reflect-metadata": "^0.1.13", "socket.io-client": "^4.7.5", - "typeorm": "0.3.20", - "utf-8-validate": "*" + "typeorm": "0.3.20" }, "devDependencies": { "@types/node": "^16.11.10", diff --git a/plugins/tickets/package-lock.json b/plugins/tickets/package-lock.json index be62b330..8e29661e 100644 --- a/plugins/tickets/package-lock.json +++ b/plugins/tickets/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.0", "license": "LSC", "dependencies": { - "bufferutil": "*", "canvacord": "^6.0.2", "cron-parser": "^4.9.0", "discord.js": "^14.15.2", @@ -18,8 +17,7 @@ "node-forge": "^1.3.1", "reflect-metadata": "^0.1.14", "socket.io-client": "^4.7.5", - "typeorm": "^0.3.20", - "utf-8-validate": "*" + "typeorm": "^0.3.20" }, "devDependencies": { "@types/node": "^16.18.98", diff --git a/plugins/utils/package-lock.json b/plugins/utils/package-lock.json index 1b13cfe2..82897efe 100644 --- a/plugins/utils/package-lock.json +++ b/plugins/utils/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.0", "license": "LSC", "dependencies": { - "bufferutil": "*", "cron-parser": "^4.9.0", "discord.js": "^14.15.2", "glob": "^10.3.15", @@ -17,8 +16,7 @@ "node-forge": "^1.3.1", "reflect-metadata": "^0.1.13", "socket.io-client": "^4.7.5", - "typeorm": "0.3.20", - "utf-8-validate": "*" + "typeorm": "0.3.20" }, "devDependencies": { "@types/node": "^16.11.10", diff --git a/release.ts b/release.ts index 9f1eb195..a7430c55 100644 --- a/release.ts +++ b/release.ts @@ -109,7 +109,7 @@ class Build { await this.obfuscate() await this.install() await this.clear() - // await this.convertToCJS(`${this.options.outBuild}/node_modules`, `${this.options.outBuild}/node_modules`, this.options.outBuild) + await this.convertToCJS(`${this.options.outBuild}/node_modules`, `${this.options.outBuild}/node_modules`, this.options.outBuild) await this.compress({ directory: `${this.options.outBuild}/node_modules`, outBuild: `${this.options.outBuild}/node_modules` }) await this.pkgbuild() await this.sign() @@ -147,7 +147,7 @@ class Build { const data = await readFile(file, { encoding: 'utf-8' }) const result = await babel.transformAsync(data, { presets: ["@babel/preset-env", "@babel/preset-typescript"], - plugins: ["babel-plugin-transform-import-meta", "@babel/plugin-transform-modules-commonjs", "@babel/plugin-syntax-dynamic-import" /*['babel-plugin-cjs-esm-interop', { format: 'cjs' }]*/], + plugins: !file.includes('node_modules') ? ["babel-plugin-transform-import-meta", "@babel/plugin-transform-modules-commonjs", "@babel/plugin-syntax-dynamic-import"] : [['babel-plugin-cjs-esm-interop', { format: 'cjs' }]], filename: fileName, });