Skip to content

Commit

Permalink
🧱 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Jun 18, 2024
1 parent 0566f4c commit 938eac3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion core/src/controller/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions plugins/plugin_base/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions plugins/tickets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions plugins/utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,

});
Expand Down

0 comments on commit 938eac3

Please sign in to comment.