Skip to content

refactor: inline parse#100

Merged
43081j merged 26 commits intotinylibs:mainfrom
hyperz111:inline-parse
May 2, 2026
Merged

refactor: inline parse#100
43081j merged 26 commits intotinylibs:mainfrom
hyperz111:inline-parse

Conversation

@hyperz111
Copy link
Copy Markdown
Contributor

@hyperz111 hyperz111 commented Mar 26, 2026

Some points in here:

  • Maybe we can remove the dist/LICENSES.txt file after this.
  • JavaScript output file size is now smaller.
  • Only tree-shaking the Windows logic.

Before:

ℹ Build start
ℹ Cleaning 3 files
ℹ dist/main.mjs    16.18 kB │ gzip: 5.16 kB
ℹ dist/main.d.mts   3.18 kB │ gzip: 1.00 kB
ℹ 2 files, total: 19.36 kB

After:

ℹ Build start
ℹ Cleaning 3 files
ℹ dist/main.mjs    8.19 kB │ gzip: 2.94 kB
ℹ dist/main.d.mts  3.18 kB │ gzip: 1.00 kB
ℹ 2 files, total: 11.32 kB

TODO

  • Try test this on Windows
  • Adding test for parser.

@hyperz111 hyperz111 marked this pull request as ready for review March 28, 2026 08:15
@hyperz111
Copy link
Copy Markdown
Contributor Author

cc @43081j

Comment thread src/test/parse_test.ts Outdated
@43081j
Copy link
Copy Markdown
Member

43081j commented Apr 1, 2026

@hyperz111 FYI i pushed a small optimisation. that also dropped one of the license refs since it is now new code

ill finish reading through it this week

@hyperz111
Copy link
Copy Markdown
Contributor Author

hyperz111 commented Apr 10, 2026

@43081j, maybe you have time with this now?

@43081j
Copy link
Copy Markdown
Member

43081j commented Apr 11, 2026

i'll take another look this weekend 👍

@43081j 43081j self-assigned this Apr 11, 2026
Copy link
Copy Markdown

@gameroman gameroman left a comment

Choose a reason for hiding this comment

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

Looks good I think 👍

43081j added 3 commits April 30, 2026 17:03
Use cwd when resolving relative commands, move regexps to module scope,
and handle spaceless shebangs.
@43081j 43081j merged commit 5000506 into tinylibs:main May 2, 2026
8 checks passed
@hyperz111 hyperz111 deleted the inline-parse branch May 3, 2026 01:05
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.

4 participants