Skip to content

Fix build warnings - #440

Merged
mosch merged 1 commit into
mainfrom
chore/fix-build-warnings
Sep 30, 2026
Merged

mosch merged 1 commit into
mainfrom
chore/fix-build-warnings

Conversation

@mosch

@mosch mosch commented Sep 30, 2026

Copy link
Copy Markdown
Owner
  • Type declaration errors: lib's tsconfig.build.json maps @react-avatar-editor/core to ../core/dist/index.d.ts, which only exists if core was built. Nothing built it, so the dts step logged TS2307/TS2339 errors (output happened to be fine). Lib's build now builds core first. Emitted dist/index.d.ts is byte-identical to 15.2.0.
  • .npmrc: only set enable-pre-post-scripts=true (pnpm default); npm warned about it on every command. Removed.
  • demo:build: filter react-avatar-editor* rebuilt the lib a second time; now only builds the demo after pnpm build.

Verified: clean build with no errors, lint, fmt:check, core (84) and lib (46) unit tests.

- lib build now builds @react-avatar-editor/core first so vite-plugin-dts
  can resolve its types (TS2307/TS2339 errors during declaration build).
  Emitted index.d.ts is unchanged.
- remove .npmrc: enable-pre-post-scripts=true is pnpm's default and made
  npm print 'Unknown project config' on every command.
- demo:build no longer builds the lib twice.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
react-avatar-editor d46e65c Commit Preview URL

Branch Preview URL
Sep 30 2026, 12:23 PM

@mosch
mosch merged commit 2b947b5 into main Sep 30, 2026
2 checks passed
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.

1 participant