Skip to content

Commit

Permalink
feat: esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Nov 27, 2022
1 parent db9cfbc commit 45ca3d9
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 136 deletions.
173 changes: 78 additions & 95 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions package.json
@@ -1,10 +1,16 @@
{
"name": "@kurkle/color",
"type": "module",
"version": "0.2.1",
"description": "css color parsing, manupulation and conversion",
"main": "dist/color.js",
"main": "dist/color.cjs",
"module": "dist/color.esm.js",
"types": "dist/color.d.ts",
"exports": {
"types": "./dist/color.d.ts",
"import": "./dist/color.esm.js",
"require": "./dist/color.cjs"
},
"scripts": {
"build": "node util/copy_dist.js && rollup -c",
"lint": "eslint src/*.js test/*.js util/*.js",
Expand Down Expand Up @@ -61,10 +67,10 @@
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-istanbul": "^3.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^5.5.0",
"rollup-plugin-visualizer": "^5.8.3",
"tinycolor2": "^1.4.2",
"typedoc": "^0.22.13",
"typescript": "^4.6.3",
"typedoc": "^0.23.21",
"typescript": "^4.9.3",
"util": "^0.12.3"
}
}
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -47,7 +47,7 @@ export default [
],
output: {
name,
file: main.replace('.js', '.min.js'),
file: main.replace('.cjs', '.min.js'),
format: 'umd',
sourcemap: true,
indent: false
Expand Down

0 comments on commit 45ca3d9

Please sign in to comment.