Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bun/run): Impl. npm_package_config #3661

Closed
wants to merge 192 commits into from

Conversation

trnxdev
Copy link
Contributor

@trnxdev trnxdev commented Jul 17, 2023

Closes #73

Thanks to @InKryption for helping me <3

@trnxdev
Copy link
Contributor Author

trnxdev commented Jul 17, 2023

TODO:

  • not inline the values
  • expose it only in bun run
  • support objects (optional)

@trnxdev
Copy link
Contributor Author

trnxdev commented Jul 18, 2023

important TODO, currently " " (with space) is being interpreted as "" in bun. it is supposed to be like " " in node.js.
also we need to add objects support, but that can be added in the second version as jarred said

Discord Message with the " " bug

After a bit of investigating and debugging. I found that in zig, the string is correct. but not when comparing it in a js file.
image

it also happens with ' foo ', it just turns 'foo', after digging even more, it turns out the bun executable strips it. the env is set correctly, because if you run bun run dev and dev launched node, it works correctly. so we might need to address this issue in a different pr.

UPDATE: JULY 20, I just filed an issue on github (#3689) and when talking with someone on the discord server, they supposedly already found the fix, so it might be fixed.

UPDATE: JULY 23, seems to be fixed

@trnxdev
Copy link
Contributor Author

trnxdev commented Jul 28, 2023

I want to see what happens with arrays in node, I'll check it tomorrow

@trnxdev
Copy link
Contributor Author

trnxdev commented Jul 30, 2023

image
image
image

interesting... but I think for this version i'll drop the support for arrays, very complicated

@trnxdev trnxdev requested a review from Jarred-Sumner August 9, 2023 05:25
colinhacks and others added 5 commits August 9, 2023 07:42
* Concurrent Transpiler

* Fix bug with some improts and add jsc alias

* Some comments

* Fix crash

* Update module_loader.zig

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
* return the prop if there are decorators

* test and comment
colinhacks and others added 26 commits August 9, 2023 07:42
* wasm

* WASM test scanner

* Update Makefile

* Update Makefile

* Configurable heap limit

* slightly better error

* Update js_parser.zig

* Update path.test.js

* Update node.mjs

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
* fix iterating headers with `set-cookie`

* a test

* move work to `HTTPHeaderMap::set`

* append set-cookie after sort

* remove compare function
- analogous to `npm update`
- `bun update <name>` to refresh specified package under `package.json`
- `bun update` to refresh all package to latest versions
* fetch data urls

* `byteSlice`

* deinit slice

* allocate `mime_type` string if needed

* `content_type_allocated` and uncomment tests

* `str_`

* createAtom and slice decode result
* fix `Bun.hash` functions to behave as expected

* update Bun.hash tests
* properly test the returned hash
* include murmur32v2

* update Bun.hash docs

* run fmt
* almost works

* env stuff

* test fixes

* wtfmove

* ok

* ok

* ref by default

* it now does the ref stuff by default

* cool
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
…h#4064)

2. Avoid duplicating '/' at the beginning of the path.
Close: oven-sh#4005
…ven-sh#3651)

* Fix merge issues

* oop

* make codegen

* Fix build issues

---------

Co-authored-by: dave caruso <me@paperdave.net>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
…sh#4047)

* rename callback to func

* update testscope to handle function arguments

* works

* big cleanup

* works in debug, not release

* fix memory issue & update tests

* catch & str test

* write types for each() & switch tests to ts

* rm & typo

* move some code around & support describe

* review changes
@trnxdev
Copy link
Contributor Author

trnxdev commented Aug 9, 2023

uh--- having troubles..

@trnxdev trnxdev closed this Aug 9, 2023
@trnxdev trnxdev deleted the tiramify/npm_pkg_cfg branch August 19, 2023 10:16
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.

Add support for npm_package_config_* variables