Skip to content

Windows compatibility and fix for Arrays of Enums#37

Open
LakMoore wants to merge 9 commits intolocalisprimary:masterfrom
LakMoore:master
Open

Windows compatibility and fix for Arrays of Enums#37
LakMoore wants to merge 9 commits intolocalisprimary:masterfrom
LakMoore:master

Conversation

@LakMoore
Copy link

@LakMoore LakMoore commented Feb 2, 2026

Hello, this is an awesome project that was just what I was looking for to replace a really old one that was not being maintained.

My project built referencing yours but would not run; node could not find the js files due to the missing .js file extension in index.ts. It took me a couple of attempts but I have fixed that.

Also, my project references the Roles of an Eve Character, but I could not use strongly typed roles. That led me to find a small error in the generator and I've fixed that.

If you'd like to accept this PR and publish a new package, I will switch my project to reference your package on npm instead of my temporary fork on github.

Hope this helps. Cheers.

Lak Moore added 5 commits February 2, 2026 22:37
…mpatible module resolution when consuming this package
…as more than one value, we should wrap the values in brackets otherwise only the last value in the enum can be an array

'Director' | 'Station_Manager'[]   is a union of Director and an array of Station_Manager
('Director' | 'Station_Manager')[]  is what we are looking for
…e missing .js extension to the ts file (not obvious!)

(cherry picked from commit 94f64be)
…e package versions throughout the entire tree)

(cherry picked from commit c53a9be)
@LakMoore
Copy link
Author

LakMoore commented Feb 3, 2026

Weird - the linter failed on a generated file. I don't think that is something I did!?

Copy link
Member

@Nfinished Nfinished left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for your contribution, that was a good bug to catch. It looks like you're having some environmental issues, please clean up your pr (revert all but scripts/generate.ts) and we can get it merged in.

@LakMoore
Copy link
Author

LakMoore commented Feb 3, 2026

Happy to, but need the other bits too, unless there is another solution.

  • The generate script in the repo does not work on Windows (unless you are on windows?)
  • the index.ts needs .js on the file extensions once it has been transpiled into index.js (otherwise the project can't be used)

@LakMoore
Copy link
Author

LakMoore commented Feb 3, 2026

Also, I thought I read in your docs that the generated files should be submitted. Happy to ditch them if you prefer.

@Nfinished
Copy link
Member

Ah ok I got it, you're not using a bundler so the extensions are needed. Yeah that and windows compat are ok adds. Just remove the package-lock.json and run pnpm generate && pnpm lint:fix && pnpm test to fix up.

Lak Moore added 2 commits February 3, 2026 20:34
… the same package versions throughout the entire tree)"

This reverts commit 3010f10.
@LakMoore LakMoore requested a review from Nfinished February 3, 2026 20:37
@Nfinished
Copy link
Member

@LakMoore create a changelog entry with pnpm change and I can merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants