Skip to content

Commit

Permalink
fix: fixing type distribution issue with package
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Mar 29, 2022
1 parent 3318e55 commit 0d0e312
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 12 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][]

### Fixed

- Fixing type distribution issue

## [5.3.0][] - 2022-03-03

### Fixed
Expand Down Expand Up @@ -263,7 +267,5 @@ To improve readability, these type definitions were renamed
[5.1.0]: https://github.com/willmendesneto/hex-to-css-filter/tree/v5.1.0
[unreleased]: https://github.com/willmendesneto/hex-to-css-filter/compare/v5.2.0...HEAD
[5.2.0]: https://github.com/willmendesneto/hex-to-css-filter/tree/v5.2.0


[Unreleased]: https://github.com/willmendesneto/hex-to-css-filter/compare/v5.3.0...HEAD
[5.3.0]: https://github.com/willmendesneto/hex-to-css-filter/tree/v5.3.0
[unreleased]: https://github.com/willmendesneto/hex-to-css-filter/compare/v5.3.0...HEAD
[5.3.0]: https://github.com/willmendesneto/hex-to-css-filter/tree/v5.3.0
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"rollup": "^2.56.0",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-node-resolve": "^5.2.0",
"ts-jest": "^27.0.4",
"ts-node": "^10.1.0",
Expand Down
25 changes: 17 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import resolve from 'rollup-plugin-node-resolve';
import dts from 'rollup-plugin-dts';

import { browser, module } from './package.json';

const config = {
input: module,
output: {
file: browser,
format: 'umd',
name: 'HexToCSSFilter',
const config = [
{
input: module,
output: {
file: browser,
format: 'umd',
name: 'HexToCSSFilter',
},
plugins: [resolve()],
},
{
input: './dist/esm/index.d.ts',
output: [{ file: 'dist/umd/index.d.ts', format: 'es' }],
plugins: [dts()],
},
plugins: [resolve()],
};
];

export default config;
42 changes: 42 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
dependencies:
"@babel/highlight" "^7.14.5"

"@babel/code-frame@^7.16.7":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789"
integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==
dependencies:
"@babel/highlight" "^7.16.7"

"@babel/compat-data@^7.13.15":
version "7.14.0"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.0.tgz#a901128bce2ad02565df95e6ecbf195cf9465919"
Expand Down Expand Up @@ -290,6 +297,11 @@
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz#6654d171b2024f6d8ee151bf2509699919131d48"
integrity sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g==

"@babel/helper-validator-identifier@^7.16.7":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad"
integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==

"@babel/helper-validator-option@^7.12.17":
version "7.12.17"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz#d1fbf012e1a79b7eebbfdc6d270baaf8d9eb9831"
Expand Down Expand Up @@ -336,6 +348,15 @@
chalk "^2.0.0"
js-tokens "^4.0.0"

"@babel/highlight@^7.16.7":
version "7.16.10"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.10.tgz#744f2eb81579d6eea753c227b0f570ad785aba88"
integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==
dependencies:
"@babel/helper-validator-identifier" "^7.16.7"
chalk "^2.0.0"
js-tokens "^4.0.0"

"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.14.0":
version "7.14.1"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.1.tgz#1bd644b5db3f5797c4479d89ec1817fe02b84c47"
Expand Down Expand Up @@ -3886,6 +3907,13 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"

magic-string@^0.26.1:
version "0.26.1"
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.26.1.tgz#ba9b651354fa9512474199acecf9c6dbe93f97fd"
integrity sha512-ndThHmvgtieXe8J/VGPjG+Apu7v7ItcD5mhEIvOscWjPF/ccOiLxHaSuCAS2G+3x4GKsAbT8u7zdyamupui8Tg==
dependencies:
sourcemap-codec "^1.4.8"

make-dir@^1.0.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
Expand Down Expand Up @@ -4748,6 +4776,15 @@ rimraf@^3.0.0, rimraf@^3.0.2:
dependencies:
glob "^7.1.3"

rollup-plugin-dts@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-dts/-/rollup-plugin-dts-4.2.0.tgz#f7ae4646f5b3aec07560bc341c0dc4a85f8a0dff"
integrity sha512-lx6irWVhz/x4//tIqRhzk4FOqGQ0n37ZM2wpPCn4uafl/EmiV92om7ZdAsq7Bzho6C+Xh5GfsyuP9H+Udv72Lg==
dependencies:
magic-string "^0.26.1"
optionalDependencies:
"@babel/code-frame" "^7.16.7"

rollup-plugin-node-resolve@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz#730f93d10ed202473b1fb54a5997a7db8c6d8523"
Expand Down Expand Up @@ -4956,6 +4993,11 @@ source-map@^0.7.3:
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==

sourcemap-codec@^1.4.8:
version "1.4.8"
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==

spdx-correct@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9"
Expand Down

0 comments on commit 0d0e312

Please sign in to comment.