Repository navigation
feat: publish explicit Vite+ build and format presets #98
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
66df5a5
feat: publish explicit Vite+ build and format presets
chaitanyapotti 5c54cbe
merge: require Node.js 24.22.0 and check Changesets against the pull …
chaitanyapotti 966a1e1
test: give the library watch contract enough time
chaitanyapotti 0b00a2b
fix: pack each Vite+ preset as its own module
chaitanyapotti dc270be
fix: build dist before npm pack and npm publish
chaitanyapotti 828847a
docs: list the preset and TypeScript profile breaking changes
chaitanyapotti 913bda7
fix: keep preset option values as literal types
chaitanyapotti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| "@toruslabs/torus-scripts": major | ||
| "@toruslabs/config": major | ||
| --- | ||
|
|
||
| Replace the Rollup build commands with explicit Vite+ presets for libraries, React, Node, and formatting. `@toruslabs/config` now exports TypeScript profiles only. These packages require Node.js >=24.22.0 and npm >=12. `npm pack` and `npm publish` build `dist` before they create the archive. | ||
|
|
||
| Breaking changes: | ||
|
|
||
| - `strictNullChecks` is now `true` in `tsconfig.base.json`. The old profile set `strict` to `true` and `strictNullChecks` to `false`. | ||
| - DOM libraries are removed. `tsconfig.library.json` and `tsconfig.node.json` use the ES2024 library only. Add DOM libraries in a browser package. | ||
| - The `torus-scripts` command is removed. Babel configs and `torus.config.js` are removed. | ||
| - `libraryPreset()` requires an `entry` option, for example `libraryPreset({ entry: "src/index.ts" })`. Library builds default to ESM. Pass `format: ["esm", "cjs"]` when a package must also ship CommonJS. The old defaults emitted both formats. | ||
|
|
||
| Use independent package versions. `@toruslabs/torus-scripts` and `@toruslabs/config` have no consumer requirement for synchronized releases. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to include these breaking changes in the note: