From 1bcf537c39eaa97f1b725acd9d45a5115b3e941b Mon Sep 17 00:00:00 2001 From: zenozeng Date: Tue, 27 Apr 2021 19:28:54 +0800 Subject: [PATCH] chore: dist/color-hash.js: tsc --module commonjs, fixes #36 --- CHANGELOG.md | 4 ++++ Makefile | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb5de3a..413af6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v2.0.1 + +- chore: dist/color-hash.js: tsc --module commonjs + ## v2.0.0 - refactor: rewrite using deno diff --git a/Makefile b/Makefile index f70662c..91275f9 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,6 @@ build: npx tsc --target es2015 --allowJs dist/bundle.js --outDir tmp cp tmp/bundle.js dist/esm.js rm -rf tmp - npx tsc --module umd --allowJs dist/bundle.js --outDir tmp + npx tsc --module commonjs --allowJs dist/bundle.js --outDir tmp cp tmp/bundle.js dist/color-hash.js rm -rf tmp \ No newline at end of file diff --git a/package.json b/package.json index 7ec556a..1f9c35a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "color-hash", - "version": "2.0.0", + "version": "2.0.1", "description": "Generate color based on the given string (using HSL color space and SHA256).", "main": "dist/color-hash.js", "scripts": {