aboutsummaryrefslogtreecommitdiff
path: root/src/resolver/package_json.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-01[bun bun] Fix incorrect package.hashGravatar Jarred Sumner 1-2/+4
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-2/+2
2022-11-21Wildcard imports map (#1483)Gravatar João Paquim 1-38/+63
* Log extra info on missing file extension * Improve error messages for missing /index.js on import * Remove unnecessary function parameter path * Add loadPackageImports function to match esbuild * Add support for pattern trailer import syntax * Fix review comments
2022-11-08Default enable optional dependencies for remote packagesGravatar Jarred Sumner 1-1/+1
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 1-32/+294
(#1459) * Update bundler.zig * WIP * Update README.md * Update README.md * wip * Support running scripts without package.json * Add `--no-auto-install` and `--prefer-offline` flags * WIP * wip * Update headers-handwritten.h * WIP * Build fixes * Fix UAF * Update install.zig * Must call .allocate() * Micro-optimization: only call .timestamp() once per tick when installing packages * Support progress bar * Extend the timestamp for package staleness checks to 1 day * Add `--prefer-latest`, `-i` CLI Flags * Fix crash * Support line text manually being set on an Error instance * Add a few more fields for error messages * Fix bug when counting 8 character strings in string builder * Implement error handling for automatic package installs! * Fix crash * Make it say module when there's a slash * Update module_loader.zig * Ban dependency versions in import specifiers when a package.json is present * Remove unused field * Update README.md * Update README.md * Update README.md * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-09-19Implement `imports` in package.json (`#foo` imports)Gravatar Jarred Sumner 1-15/+84
Fixes https://github.com/oven-sh/bun/issues/478 Fixes https://github.com/oven-sh/bun/issues/234 Fixes https://github.com/oven-sh/bun/issues/822
2022-05-19[wip] Solid.js support for Bun!Gravatar Jarred Sumner 1-1/+1
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-7/+7
2022-03-17move some code aroundGravatar Jarred Sumner 1-1/+1
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-16/+16
2022-03-02remove a threadlocalGravatar Jarred Sumner 1-12/+16
2022-02-27WASMGravatar Jarred Sumner 1-5/+5
2022-02-20add version to Framework structGravatar Jarred Sumner 1-0/+8
2022-01-28Update AST layout to store capacity for itemsGravatar Jarred Sumner 1-15/+16
We want to be able to push to the list
2022-01-27Stop reading `"bun"` from package.jsonGravatar Jarred Sumner 1-29/+0
cc @hanford
2022-01-19Bun.Transpiler – API for scanning imports/exports of JSX/TSX/TS/JS filesGravatar Jarred Sumner 1-58/+69
2022-01-05Fix bug preventing multiple framework overridesGravatar Jarred Sumner 1-2/+3
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-15/+23
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-2/+1
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
2021-12-16wipGravatar Jarred Sumner 1-0/+1
2021-11-05[resolver] Fix bug with package.json `"exports"` resolution with a suffix ↵Gravatar Jarred Sumner 1-5/+4
after the wildcard
2021-11-02[internal] Undo workspace commits, turns out it's not necessary for nowGravatar Jarred Sumner 1-3/+0
2021-11-02[bundler] Start detecting workspace rootsGravatar Jarred Sumner 1-7/+14
2021-10-26New subcommand: `bun run` run scripts in package.json really fastGravatar Jarred Sumner 1-0/+39
2021-09-30Support remapping macro pathsGravatar Jarred Sumner 1-0/+66
2021-09-23Add `"bun": { "alwaysBundle": ["packageName"] },` to package.jsonGravatar Jarred Sumner 1-0/+23
This is for monorepos that symlink directories into node_modules. For example, if you have a design system in your monorepo, you probably want to always bundle that.
2021-09-22Add disabled status to ESM resolutionjarred/exports-mapGravatar Jarred Sumner 1-0/+7
2021-09-22package json exports seems to work now!!!Gravatar Jarred Sumner 1-4/+10
2021-09-21Fix the compiler errorsGravatar Jarred Sumner 1-40/+46
2021-09-21Add "exports" to PackageJSONGravatar Jarred Sumner 1-1/+12
2021-09-21Most of the ESM resolution algorithm (still untested)Gravatar Jarred Sumner 1-34/+640
2021-09-21`endsWithAny` -> `endsWithAnyComptime`Gravatar Jarred Sumner 1-1/+1
2021-09-21Parse "exports" field from package.json (WIP)Gravatar Jarred Sumner 1-1/+233
2021-09-21Add comment explaining failed package.json parsing optimizationGravatar Jarred Sumner 1-0/+5
2021-09-12Fix "browser" map resolution, _almost_ fix symbol collisions, cache absolute ↵Gravatar Jarred Sumner 1-1/+1
paths for file entries
2021-09-09currentjarred/fetch-experimentGravatar Jarred Sumner 1-0/+29
2021-08-31Add display name field to frameworks, improve logging, add counters, addGravatar Jarred Sumner 1-0/+8
Former-commit-id: b2cf011b6c6405a786fe22367e1cd4e6c2c4c90f
2021-08-31Fallback, fragments, printer compat, better errorsGravatar Jarred Sumner 1-7/+34
Former-commit-id: 486e8c9d460eeebea024e96dbabcb7f2bfaffafb
2021-08-29latestGravatar Jarred Sumner 1-13/+42
Former-commit-id: 096ec1222ad723d006b0151f10cb0c1b95e2bfd3
2021-08-26LatestGravatar Jarred Sumner 1-1/+0
Former-commit-id: a52b8b9f1052b3e3136c249aac0a7d93334a3eb7
2021-08-21Fix watcher when you move files/dirs around. It'll bust the cache and ↵Gravatar Jarred Sumner 1-1/+1
recreate it (and leak memory) Former-commit-id: 8faf6127547411c1fdcee9e4e7440825f21ecd99
2021-08-19Log level + onimportcssGravatar Jarred Sumner 1-0/+10
Former-commit-id: 12ba9b9bc288573e3a5099adfa14c486c4cc980c
2021-08-17fix static dirGravatar Jarred Sumner 1-0/+1
Former-commit-id: 6b396f27940250d33539846ae47596066f12034f
2021-08-17fix jsxGravatar Jarred Sumner 1-3/+22
Former-commit-id: a9bfcbce261798cdd0c3f8cb09076dc246920b48
2021-08-15Support multiple route dirs, fix bundling JSX, fix cjs bug, remove warning ↵Gravatar Jarred Sumner 1-5/+45
about unbundled modules in speedy env, Former-commit-id: ae718dbd05397bed9bc49a77fae20de70b635e82
2021-08-14.env worksGravatar Jarred Sumner 1-48/+94
Former-commit-id: 45ee7874f2c8566c3034743161031b0859423f41
2021-08-14lotsGravatar Jarred Sumner 1-0/+60
Former-commit-id: 0b8128cb3b4db02f9d33331b4c2c1b595156e6c8
2021-08-10This is alotGravatar Jarred Sumner 1-25/+55
Former-commit-id: 4b2a396611ec03270dc768b70e488b0f5eee2a37
2021-08-09Split up + generate client & server bundles, support framework +router in ↵Gravatar Jarred Sumner 1-0/+105
GenerateNodeModulesBundle , read framework from package.json + rename "publicURL" to "origin" + add import.meta.filepath Former-commit-id: 1e76ebb5375247231181ec19a6396c6acf4684fb
2021-07-13alrightGravatar Jarred Sumner 1-1/+1
Former-commit-id: ab73c7b323c222e5d1172c07036653ca98aa8e6b