Commit ecf479f
Add Rollup bundling and update dependencies for dice package; add bundling for monte-carlo package (#13)
* feat(build): add rollup bundler with UMD, ESM, and CJS outputs
- Introduce rollup.config.js for bundling with plugins for typescript, node resolve, commonjs, and terser
- Add tsconfig.rollup.json for rollup-specific TypeScript config
- Update package.json to include rollup scripts and outputs for main, module, browser, and types
- Add rollup and related plugins as devDependencies
- Update package-lock.json with new dependencies
This enables building the package into multiple module formats for better compatibility and distribution.
Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
* test(hints): improve test formatting and assertions for hint display
- Refactor test cases for better readability and consistency
- Ensure proper formatting of multiline strings in tests
- Add checks for uppercase 'OR' in hint cost display
- Validate hint cost and description structure more thoroughly
- Clean up whitespace and arrow function usage in tests
- Confirm presence of hints with multiple cost options and specific symbols
- Enhance dice roll tests with stricter property checks and limits
These changes improve the reliability and clarity of tests related to hint display and dice rolling.
Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
* feat(build): add rollup bundler for UMD, ESM, and CJS outputs
- Add rollup configuration for creating self-contained bundles
- Update package.json exports to support multiple module formats
- Fix direct dist import of DiceResult type
- Bundle includes all dependencies for standalone usage
Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
---------
Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>1 parent 876598f commit ecf479f
File tree
9 files changed
+636
-73
lines changed- src
- tests
9 files changed
+636
-73
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments