diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65bb41d..8324d6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,9 @@ jobs: pnpm install pnpm -r build pnpm -r test + # - name: Create tags + # pnpm -r --filter=image-q --no-bail exec "git tag $(node -e 'pj=require(\'./package.json\');console.log(pj.name+'@'+pj.version')" + # git push --follow-tags - name: Publish run: | pnpm -r publish --no-git-checks --access=public diff --git a/packages/demo/src/controller/usage.ts b/packages/demo/src/controller/usage.ts index b1ec7b8..259f19a 100644 --- a/packages/demo/src/controller/usage.ts +++ b/packages/demo/src/controller/usage.ts @@ -115,6 +115,13 @@ export class QuantizationUsage { palette = paletteQuantizer.quantizeSync(); }); + // window['xxx'] = !window['xxx']; + // const alpha = window['xxx'] ? 255 : 0; + // console.log('255,255,255,', alpha) + // palette = new iq.utils.Palette(); + // palette.add(iq.utils.Point.createByRGBA(0, 0, 0, 255)) + // palette.add(iq.utils.Point.createByRGBA(255, 255, 255, alpha)) + this._timeMark('...dither', () => { var distance: iq.distance.AbstractDistanceCalculator = this._getColorDistanceCalculator(optionColorDistance); diff --git a/packages/image-q/package.json b/packages/image-q/package.json index 3e0532a..90c3f5f 100644 --- a/packages/image-q/package.json +++ b/packages/image-q/package.json @@ -1,13 +1,13 @@ { "name": "image-q", - "version": "3.0.2", + "version": "3.0.3", "description": "Image Quantization Library in **TypeScript** *(MIT Licensed)*", "license": "MIT", "contributors": [], "homepage": "https://github.com/ibezkrovnyi/image-quantization/tree/main/packages/image-q", "main": "dist/umd/image-q.js", "module": "dist/esm/src/index.js", - "types": "dist/esm/src/index.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { "import": "./dist/esm/src/index.js", "require": "./dist/umd/image-q.js", diff --git a/packages/image-q/tsconfig.build-esm.json b/packages/image-q/tsconfig.build-esm.json index 07d40d7..c55dfdc 100644 --- a/packages/image-q/tsconfig.build-esm.json +++ b/packages/image-q/tsconfig.build-esm.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "dist/esm", + "declarationDir": "dist/types", "module": "esnext", "types": ["node"], "tsBuildInfoFile": "./node_modules/.cache/tsc/tsconfig.build-esm.tsbuildinfo"