open-dis / open-dis-javascript

Javascript implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v6 and v7
BSD 2-Clause "Simplified" License
11 stars 12 forks source link

Push New Version to npm? #9

Closed nickclark2016 closed 2 years ago

nickclark2016 commented 2 years ago

Question/issue is the title. Would it be possible to get 1.3.1 onto npm since it has bug fixes for encode?

leif81 commented 2 years ago

Yes good idea, I will try to get to this today.

leif81 commented 2 years ago

1.3.1 has been published.

https://www.npmjs.com/package/open-dis

@nickclark2016 let me know if you have any issues.

nickclark2016 commented 2 years ago

I'll check in the morning. Much appreciated!

nickclark2016 commented 2 years ago

@leif81 So looking at what's on npm, it appears that it's the source version and not the version that is compiled down to a dis.js file. Is that possible to resolve so I don't need to include each file manually?

leif81 commented 2 years ago

Oops my intent was to publish the minified version. Will look into.

leif81 commented 2 years ago

@nickclark2016 ok give 1.3.3 a try. It will include a dist folder with dis6.min.js and dis7.min.js. Choose one.

Hopefully this works this time but let me know again if you have issues.

leif81 commented 2 years ago

Edit: Sorry I mean try 1.3.2

nickclark2016 commented 2 years ago

No worries! It looks like doing this:

import { ... } from 'open-dis';

Doesn't work anymore. Instead, I have to do:

import { ... } from 'open-dis/dist/dis6.min';

Is this expected? That said, I do compile. Thanks for getting all this up to npm for me!