npetrovski / l2js-client

JavaScript client for Lineage 2
MIT License
105 stars 34 forks source link

Failed to run npm run compile #55

Closed 0xUnk closed 1 year ago

0xUnk commented 1 year ago

Hi @npetrovski.

I found a bug when running the command npm run compile when executing the command, it is leaving the files below with only the import empty.

build-index.js is corrupting the files preventing the build from completing successfully.

src/commands/index.ts

 export default {

  };

src/network/incoming/game/index.ts

export {

};

src/network/incoming/login/index.ts

export {

};

src/network/mutators/game/index.ts

export default [

];

src/network/mutators/login/index.ts

image

Thank you!

w3nder commented 1 year ago

@0xUnk

Hi how are you? path problem, you are building on a platform other than Windows, to solve is very simple.

const fullPath = ${dirname}\\${file}; change to const fullPath = ${dirname}${path.sep}${file};

0xUnk commented 1 year ago

@w3nder thks