From 447f980d4adce23fce9cfc429b0be7005f097b5c Mon Sep 17 00:00:00 2001 From: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:09:42 +0000 Subject: [PATCH] build(publish): optimise npm package size (#2301) * build: optimize npm package size * fix: excluded regexes * chore: update CHANGELOG.md * fix: changelog information Co-authored-by: Peter Savchenko --------- Co-authored-by: Peter Savchenko --- .npmignore | 28 ++++++---------------------- docs/CHANGELOG.md | 5 +++-- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/.npmignore b/.npmignore index 98ed3edf..b5404fb3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,22 +1,6 @@ -.idea -.github -docs -example -src -test -.babelrc -.editorconfig -.eslintignore -.eslintrc -.git -.gitmodules -.jshintrc -.postcssrc.yml -.stylelintrc -CODEOWNERS -cypress.json -tsconfig.json -tslint.json -webpack.config.js -yarn.lock -devserver.js +* +!dist/**/* +!types/**/* +!LICENSE +!README.md +!package.json diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 4b677d9a..1b4d617f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,8 +5,9 @@ - `Refactoring` — Popover class refactored. - `Improvement` — *Toolbox* — Number of `close()` method calls optimized. - `Improvement` — The `onChange` callback won't be triggered only if all mutations contain nodes with the `data-mutation-free` attributes. -- `Fix` — Resolve compiler error from importing the BlockToolData type -- `Fix` — Resolved a problem when document was being scrolled to the beginning after moving up a Block above the viewport +- `Fix` — Resolve compiler error from importing the BlockToolData type. +- `Fix` — Resolved a problem when document was being scrolled to the beginning after moving up a Block above the viewport. +- `Improvement` — Package size reduced by removing redundant files ### 2.26.5