Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/tidy-configs-build.md
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.

Copy link
Copy Markdown
Member

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:

  • strictNullChecks goes from false to true in packages/config/tsconfig.base.json:16. The old profile had strict: true with null checks explicitly off.
  • DOM libs are gone. tsconfig.library.json and tsconfig.node.json are ES2024 only. Browser packages must add DOM themselves.
  • The torus-scripts binary, Babel configs, and torus.config.js are removed. The changeset does not say that.
  • Library builds now default to ESM. CJS requires format: ["esm", "cjs"]. The old defaults emitted both.

15 changes: 8 additions & 7 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@ jobs:
run: npm ci
- name: Check dependency hardening
run: npx --no-install harden check --package-manager npm
- name: Fetch Changesets base
run: git fetch --no-tags origin main:refs/remotes/origin/main
- name: Build packages
run: npm run build
- name: Check TypeScript projects
run: npm run typecheck
- name: Run tests
run: npm run test
- name: Check release notes
run: npm exec -- changeset status --since=origin/main
- name: Check changed package release notes
if: github.event_name == 'pull_request'
env:
BASE_REF: ${{ github.base_ref }}
run: |
if git diff --name-only "origin/${BASE_REF}...HEAD" -- packages/ | rg -q .; then
npm exec -- changeset status --since="origin/${BASE_REF}"
fi
git fetch --no-tags origin "${BASE_REF}:refs/remotes/origin/${BASE_REF}"
npm exec -- changeset status --since="origin/${BASE_REF}"
- name: Preview package archives
run: npm pack --workspaces --dry-run --json
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.yaml

This file was deleted.

19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ Torus CLI and devtools

## Packages

| Package | Description |
| ------------------------------------------------------------------- | ---------------------------------------- |
| [🚀 `create-torus-app`](/packages/torus-scripts) | The easiest way to get started with Web3 |
| [🚀 `eslint-config-javascript`](/packages/eslint-config-javascript) | ESLint config for JavaScript projects |
| [🚀 `eslint-config-typescript`](/packages/eslint-config-typescript) | ESLint config for TypeScript projects |
| [🚀 `eslint-config-node`](/packages/eslint-config-node) | ESLint config for Node.js projects |
| [🚀 `eslint-config-react`](/packages/eslint-config-react) | ESLint config for React projects |
| [🚀 `eslint-config-vue`](/packages/eslint-config-vue) | ESLint config for Vue projects |
- [`@toruslabs/config`](packages/config): TypeScript profiles for libraries and applications.
- [`@toruslabs/torus-scripts`](packages/torus-scripts): Vite+ build and format presets.
- [`@toruslabs/eslint-config-javascript`](packages/eslint-config-javascript): ESLint config for JavaScript projects.
- [`@toruslabs/eslint-config-typescript`](packages/eslint-config-typescript): ESLint config for TypeScript projects.
- [`@toruslabs/eslint-config-node`](packages/eslint-config-node): ESLint config for Node.js projects.
- [`@toruslabs/eslint-config-react`](packages/eslint-config-react): ESLint config for React projects.
- [`@toruslabs/eslint-config-vue`](packages/eslint-config-vue): ESLint config for Vue projects.

## Release checks

CI checks Node 24.22.0 and Node 26 with npm 12.2.0. It checks dependency hardening and Changesets status.
CI checks Node 24.22.0 and Node 26 with npm 12.2.0. It checks dependency hardening, builds, tests, and Changesets status.

GitHub CodeQL default setup scans JavaScript and TypeScript. The separate workflow runs Semgrep OSS.

Dependabot security updates, secret scanning, and push protection are enabled. Wiz covers all organization repositories, but its scan results here are unverified.

Review package files, security alerts, and the Changesets preview before release. Do not publish without approval.

This workspace uses TypeScript 7.0.2 with Vite+ 1.4.0. Its source packages use explicit TypeScript project files for declaration builds.
Loading
Loading