diff --git a/.gitignore b/.gitignore index d31dd40a..3e8fef7b 100644 --- a/.gitignore +++ b/.gitignore @@ -54,4 +54,5 @@ dist/ # ESM Version es/ jimp.js.* -repro-playground.js \ No newline at end of file +repro-playground.js +**/src/package.json \ No newline at end of file diff --git a/packages/config-eslint/package.json b/packages/config-eslint/package.json index 14b11448..6fefdb07 100644 --- a/packages/config-eslint/package.json +++ b/packages/config-eslint/package.json @@ -5,7 +5,7 @@ "private": true, "main": "base.js", "scripts": { - "clean": "rm -rf node_modules" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.2.0", @@ -13,7 +13,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-config-turbo": "^1.12.5", "eslint-plugin-only-warn": "^1.1.0", - "typescript": "^5.4.2" + "typescript": "^5.5.4" }, "publishConfig": {}, "sideEffects": false diff --git a/packages/config-typescript/package.json b/packages/config-typescript/package.json index bb12cb36..c69ee4cc 100644 --- a/packages/config-typescript/package.json +++ b/packages/config-typescript/package.json @@ -6,5 +6,8 @@ "publishConfig": { "access": "public" }, - "sideEffects": false -} + "sideEffects": false, + "scripts": { + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" + } +} \ No newline at end of file diff --git a/packages/config-vitest/package.json b/packages/config-vitest/package.json index b57567fe..7dd154ec 100644 --- a/packages/config-vitest/package.json +++ b/packages/config-vitest/package.json @@ -4,7 +4,8 @@ "private": true, "repository": "jimp-dev/jimp", "scripts": { - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -12,7 +13,7 @@ "@jimp/config-typescript": "workspace:*", "@jimp/test-utils": "workspace:*", "eslint": "^8.57.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "dependencies": { diff --git a/packages/core/package.json b/packages/core/package.json index 2c8ec1f2..8d060e44 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,7 +7,7 @@ "test-off": "vitest", "build": "tshy", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -27,9 +27,10 @@ "@jimp/test-utils": "workspace:*", "@types/file-type": "^10.9.1", "@types/mime": "^3.0.4", + "@types/node": "^20.12.5", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/packages/diff/package.json b/packages/diff/package.json index e418cbd7..3697f116 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -6,7 +6,8 @@ "lint": "eslint .", "test": "vitest", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -24,7 +25,7 @@ "@types/pixelmatch": "^5.2.6", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/packages/docs/package.json b/packages/docs/package.json index cb75989a..0b91adf7 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -8,7 +8,8 @@ "start": "astro dev", "build": "rm -rf dist && astro check && astro build", "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "dependencies": { "@astrojs/check": "^0.9.3", @@ -26,7 +27,7 @@ "starlight-typedoc": "^0.15.0", "typedoc": "^0.26.6", "typedoc-plugin-markdown": "4.2.6", - "typedoc-plugin-zod": "^1.1.2", + "typedoc-plugin-zod": "^1.2.1", "typescript": "^5.4.3" }, "devDependencies": { diff --git a/packages/file-ops/package.json b/packages/file-ops/package.json index 22c15e72..ee883f8b 100644 --- a/packages/file-ops/package.json +++ b/packages/file-ops/package.json @@ -5,7 +5,8 @@ "scripts": { "lint": "eslint .", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -15,7 +16,7 @@ "@types/node": "^20.12.5", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/packages/jimp/package.json b/packages/jimp/package.json index b9536ed0..f08c8048 100644 --- a/packages/jimp/package.json +++ b/packages/jimp/package.json @@ -19,7 +19,7 @@ "build": "tshy", "build:browser": "rollup -c", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "keywords": [ "image", @@ -82,7 +82,7 @@ "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-polyfill-node": "^0.13.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 7589d9d4..d23dfae3 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -5,7 +5,8 @@ "scripts": { "lint": "eslint .", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -18,9 +19,10 @@ "@jimp/config-eslint": "workspace:*", "@jimp/config-typescript": "workspace:*", "@types/jest-image-snapshot": "^6.4.0", + "@types/node": "^20.12.5", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/packages/types/package.json b/packages/types/package.json index 0dd423cf..fdf436c0 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -6,7 +6,7 @@ "lint": "eslint .", "build": "tshy", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -16,7 +16,7 @@ "@types/node": "^20.12.5", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/packages/utils/package.json b/packages/utils/package.json index a43848d8..debaf03c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -7,7 +7,7 @@ "test": "vitest", "build": "tshy", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -18,10 +18,11 @@ "devDependencies": { "@jimp/config-eslint": "workspace:*", "@jimp/config-typescript": "workspace:*", + "@types/node": "^20.12.5", "@types/tinycolor2": "^1.4.6", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/plugins/js-bmp/package.json b/plugins/js-bmp/package.json index 579015c4..47d927fe 100644 --- a/plugins/js-bmp/package.json +++ b/plugins/js-bmp/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -17,10 +18,11 @@ "@jimp/config-vitest": "workspace:*", "@jimp/js-png": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/js-gif/package.json b/plugins/js-gif/package.json index 59edd835..37eb45b7 100644 --- a/plugins/js-gif/package.json +++ b/plugins/js-gif/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -17,10 +18,11 @@ "@jimp/config-vitest": "workspace:*", "@jimp/test-utils": "workspace:*", "@types/omggif": "^1.0.5", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/js-jpeg/package.json b/plugins/js-jpeg/package.json index 06899e87..10acc49f 100644 --- a/plugins/js-jpeg/package.json +++ b/plugins/js-jpeg/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -19,7 +20,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/js-png/package.json b/plugins/js-png/package.json index cc05d673..949067fc 100644 --- a/plugins/js-png/package.json +++ b/plugins/js-png/package.json @@ -8,7 +8,7 @@ "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -26,7 +26,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/js-tiff/package.json b/plugins/js-tiff/package.json index a22a2a1d..566f8a56 100644 --- a/plugins/js-tiff/package.json +++ b/plugins/js-tiff/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -16,10 +17,11 @@ "@jimp/config-typescript": "workspace:*", "@jimp/config-vitest": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-blit/package.json b/plugins/plugin-blit/package.json index 3d8faa45..7de4f2f2 100644 --- a/plugins/plugin-blit/package.json +++ b/plugins/plugin-blit/package.json @@ -8,7 +8,7 @@ "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -28,7 +28,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-blur/package.json b/plugins/plugin-blur/package.json index 8220a039..6652d5c0 100644 --- a/plugins/plugin-blur/package.json +++ b/plugins/plugin-blur/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -21,7 +22,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-circle/package.json b/plugins/plugin-circle/package.json index 7fb5872a..c3a6af9f 100644 --- a/plugins/plugin-circle/package.json +++ b/plugins/plugin-circle/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -24,7 +25,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-color/package.json b/plugins/plugin-color/package.json index 7e8214a9..5fc17c44 100644 --- a/plugins/plugin-color/package.json +++ b/plugins/plugin-color/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -18,11 +19,12 @@ "@jimp/js-jpeg": "workspace:*", "@jimp/js-png": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@types/tinycolor2": "^1.4.6", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-color/src/index.ts b/plugins/plugin-color/src/index.ts index 49e8c13c..6ba8ef45 100644 --- a/plugins/plugin-color/src/index.ts +++ b/plugins/plugin-color/src/index.ts @@ -64,7 +64,7 @@ function applyKernel( x: number, y: number ) { - const value = [0, 0, 0]; + const value = [0, 0, 0] as [number, number, number]; const size = (kernel.length - 1) / 2; for (let kx = 0; kx < kernel.length; kx += 1) { @@ -236,9 +236,9 @@ function histogram(image: I) { }; image.scan((_, __, index) => { - histogram.r[image.bitmap.data[index + 0]!]++; - histogram.g[image.bitmap.data[index + 1]!]++; - histogram.b[image.bitmap.data[index + 2]!]++; + histogram.r[image.bitmap.data[index + 0]!]!++; + histogram.g[image.bitmap.data[index + 1]!]!++; + histogram.b[image.bitmap.data[index + 2]!]!++; }); return histogram; @@ -357,13 +357,15 @@ export const methods = { image.scan((_, __, idx) => { if (val < 0.0) { - image.bitmap.data[idx] *= 1 + val; - image.bitmap.data[idx + 1] *= 1 + val; - image.bitmap.data[idx + 2] *= 1 + val; + image.bitmap.data[idx]! *= 1 + val; + image.bitmap.data[idx + 1]! *= 1 + val; + image.bitmap.data[idx + 2]! *= 1 + val; } else { - image.bitmap.data[idx] += (255 - image.bitmap.data[idx]!) * val; - image.bitmap.data[idx + 1] += (255 - image.bitmap.data[idx + 1]!) * val; - image.bitmap.data[idx + 2] += (255 - image.bitmap.data[idx + 2]!) * val; + image.bitmap.data[idx]! += (255 - image.bitmap.data[idx]!) * val; + image.bitmap.data[idx + 1]! += + (255 - image.bitmap.data[idx + 1]!) * val; + image.bitmap.data[idx + 2]! += + (255 - image.bitmap.data[idx + 2]!) * val; } }); diff --git a/plugins/plugin-contain/package.json b/plugins/plugin-contain/package.json index 08dbe9f1..ff236067 100644 --- a/plugins/plugin-contain/package.json +++ b/plugins/plugin-contain/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -27,7 +28,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-cover/package.json b/plugins/plugin-cover/package.json index 6795a58f..2ba2efc8 100644 --- a/plugins/plugin-cover/package.json +++ b/plugins/plugin-cover/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -27,7 +28,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-crop/package.json b/plugins/plugin-crop/package.json index dce166cf..69e9f939 100644 --- a/plugins/plugin-crop/package.json +++ b/plugins/plugin-crop/package.json @@ -8,7 +8,7 @@ "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", "dev": "tshy --watch", - "clean": "rm -rf node_modules .tshy .tshy-build dist" + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -23,10 +23,11 @@ "@jimp/config-typescript": "workspace:*", "@jimp/config-vitest": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-displace/package.json b/plugins/plugin-displace/package.json index 38f1caa5..f995b055 100644 --- a/plugins/plugin-displace/package.json +++ b/plugins/plugin-displace/package.json @@ -5,7 +5,8 @@ "scripts": { "lint": "eslint .", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -19,7 +20,7 @@ "@jimp/config-typescript": "workspace:*", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/plugins/plugin-dither/package.json b/plugins/plugin-dither/package.json index 22516eea..0ff83364 100644 --- a/plugins/plugin-dither/package.json +++ b/plugins/plugin-dither/package.json @@ -5,7 +5,8 @@ "scripts": { "lint": "eslint .", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -18,7 +19,7 @@ "@jimp/config-typescript": "workspace:*", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/plugins/plugin-fisheye/package.json b/plugins/plugin-fisheye/package.json index 9431d907..742fc63b 100644 --- a/plugins/plugin-fisheye/package.json +++ b/plugins/plugin-fisheye/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -25,7 +26,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-flip/package.json b/plugins/plugin-flip/package.json index 94da161c..37c780b4 100644 --- a/plugins/plugin-flip/package.json +++ b/plugins/plugin-flip/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -21,10 +22,11 @@ "@jimp/config-vitest": "workspace:*", "@jimp/core": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-hash/package.json b/plugins/plugin-hash/package.json index 8b158647..aab92ca1 100644 --- a/plugins/plugin-hash/package.json +++ b/plugins/plugin-hash/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -20,7 +21,7 @@ "any-base": "^1.1.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-mask/package.json b/plugins/plugin-mask/package.json index 33799db4..1d99d957 100644 --- a/plugins/plugin-mask/package.json +++ b/plugins/plugin-mask/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -24,7 +25,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-print/package.json b/plugins/plugin-print/package.json index bc768201..ee537db3 100644 --- a/plugins/plugin-print/package.json +++ b/plugins/plugin-print/package.json @@ -7,7 +7,8 @@ "lint": "eslint .", "test": "vitest", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -16,9 +17,10 @@ "@jimp/config-typescript": "workspace:*", "@jimp/js-png": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { diff --git a/plugins/plugin-print/src/index.node.test.ts b/plugins/plugin-print/src/index.node.test.ts index 32959a46..7cb55c72 100644 --- a/plugins/plugin-print/src/index.node.test.ts +++ b/plugins/plugin-print/src/index.node.test.ts @@ -93,7 +93,7 @@ describe("Write text over image", function () { test("Jimp loads font from URL", async () => { const font = await loadFont( - "https://raw.githubusercontent.com/jimp-dev/jimp/main/packages/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt" + "https://raw.githubusercontent.com/jimp-dev/jimp/main/plugins/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt" ); const image = new Jimp({ width: 300, height: 100, color: 0xff8800ff }); const output = await image diff --git a/plugins/plugin-resize/package.json b/plugins/plugin-resize/package.json index 6835c123..517cf36e 100644 --- a/plugins/plugin-resize/package.json +++ b/plugins/plugin-resize/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -21,10 +22,11 @@ "@jimp/config-typescript": "workspace:*", "@jimp/config-vitest": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-rotate/package.json b/plugins/plugin-rotate/package.json index ba98089a..51423865 100644 --- a/plugins/plugin-rotate/package.json +++ b/plugins/plugin-rotate/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -25,10 +26,11 @@ "@jimp/config-vitest": "workspace:*", "@jimp/core": "workspace:*", "@jimp/test-utils": "workspace:*", + "@types/node": "^20.12.5", "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-shadow/package.json b/plugins/plugin-shadow/package.json index 8d9626d7..500257e9 100644 --- a/plugins/plugin-shadow/package.json +++ b/plugins/plugin-shadow/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -19,7 +20,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/plugins/plugin-threshold/package.json b/plugins/plugin-threshold/package.json index 95f8bf22..2f51cc4f 100644 --- a/plugins/plugin-threshold/package.json +++ b/plugins/plugin-threshold/package.json @@ -7,7 +7,8 @@ "test": "vitest", "test:browser": "vitest --config vitest.config.browser.mjs", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -20,7 +21,7 @@ "@vitest/browser": "^1.4.0", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vite-plugin-node-polyfills": "^0.21.0", "vitest": "^1.4.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index afecb968..71f1aabc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,13 +10,13 @@ importers: devDependencies: '@auto-it/all-contributors': specifier: ^11.2.1 - version: 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + version: 11.2.1(@types/node@20.12.5)(typescript@5.5.4) '@auto-it/first-time-contributor': specifier: ^11.2.1 - version: 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + version: 11.2.1(@types/node@20.12.5)(typescript@5.5.4) '@auto-it/released': specifier: ^11.2.1 - version: 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + version: 11.2.1(@types/node@20.12.5)(typescript@5.5.4) '@jimp/config-eslint': specifier: workspace:* version: link:packages/config-eslint @@ -25,13 +25,13 @@ importers: version: link:packages/config-typescript '@turbo/gen': specifier: ^1.12.5 - version: 1.12.5(@types/node@20.12.5)(typescript@5.4.3) + version: 1.12.5(@types/node@20.12.5)(typescript@5.5.4) any-base: specifier: ^1.1.0 version: 1.1.0 auto: specifier: ^11.2.1 - version: 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + version: 11.2.1(@types/node@20.12.5)(typescript@5.5.4) prettier: specifier: ^3.2.5 version: 3.2.5 @@ -43,10 +43,10 @@ importers: devDependencies: '@typescript-eslint/eslint-plugin': specifier: ^7.2.0 - version: 7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.4.2))(eslint@8.57.0)(typescript@5.4.2) + version: 7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/parser': specifier: ^7.2.0 - version: 7.2.0(eslint@8.57.0)(typescript@5.4.2) + version: 7.2.0(eslint@8.57.0)(typescript@5.5.4) eslint-config-prettier: specifier: ^9.1.0 version: 9.1.0(eslint@8.57.0) @@ -57,8 +57,8 @@ importers: specifier: ^1.1.0 version: 1.1.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 packages/config-typescript: {} @@ -84,8 +84,8 @@ importers: specifier: ^8.57.0 version: 8.57.0 typescript: - specifier: ^5.4.2 - version: 5.4.3 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -132,6 +132,9 @@ importers: '@types/mime': specifier: ^3.0.4 version: 3.0.4 + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 eslint: specifier: ^8.57.0 version: 8.57.0 @@ -139,8 +142,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -182,8 +185,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -236,8 +239,8 @@ importers: specifier: 4.2.6 version: 4.2.6(typedoc@0.26.6(typescript@5.4.3)) typedoc-plugin-zod: - specifier: ^1.1.2 - version: 1.1.2(typedoc@0.26.6(typescript@5.4.3)) + specifier: ^1.2.1 + version: 1.2.1(typedoc@0.26.6(typescript@5.4.3)) typescript: specifier: ^5.4.3 version: 5.4.3 @@ -264,8 +267,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.3 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -395,7 +398,7 @@ importers: version: 4.14.1 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.14.1)(typescript@5.4.2) + version: 6.1.0(rollup@4.14.1)(typescript@5.5.4) rollup-plugin-esbuild: specifier: ^6.1.1 version: 6.1.1(esbuild@0.21.5)(rollup@4.14.1) @@ -406,8 +409,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.14.1)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -436,6 +439,9 @@ importers: '@types/jest-image-snapshot': specifier: ^6.4.0 version: 6.4.0 + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 eslint: specifier: ^8.57.0 version: 8.57.0 @@ -443,8 +449,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -471,8 +477,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -492,6 +498,9 @@ importers: '@jimp/config-typescript': specifier: workspace:* version: link:../config-typescript + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@types/tinycolor2': specifier: ^1.4.6 version: 1.4.6 @@ -502,8 +511,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -538,6 +547,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@vitest/browser': specifier: ^1.4.0 version: 1.4.0(playwright@1.42.1)(vitest@1.4.0) @@ -548,8 +560,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -584,6 +596,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@types/omggif': specifier: ^1.0.5 version: 1.0.5 @@ -597,8 +612,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -640,8 +655,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -686,8 +701,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -719,6 +734,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@vitest/browser': specifier: ^1.4.0 version: 1.4.0(playwright@1.42.1)(vitest@1.4.0) @@ -729,8 +747,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -781,8 +799,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -815,8 +833,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -858,8 +876,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -903,6 +921,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@types/tinycolor2': specifier: ^1.4.6 version: 1.4.6 @@ -916,8 +937,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -968,8 +989,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1020,8 +1041,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1056,6 +1077,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@vitest/browser': specifier: ^1.4.0 version: 1.4.0(playwright@1.42.1)(vitest@1.4.0) @@ -1066,8 +1090,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1100,8 +1124,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -1128,8 +1152,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -1171,8 +1195,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1204,6 +1228,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@vitest/browser': specifier: ^1.4.0 version: 1.4.0(playwright@1.42.1)(vitest@1.4.0) @@ -1214,8 +1241,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1281,8 +1308,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1324,8 +1351,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1375,6 +1402,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 eslint: specifier: ^8.57.0 version: 8.57.0 @@ -1382,8 +1412,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vitest: specifier: ^1.4.0 version: 1.4.0(@types/node@20.12.5)(@vitest/browser@1.4.0)(terser@5.30.3) @@ -1412,6 +1442,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@vitest/browser': specifier: ^1.4.0 version: 1.4.0(playwright@1.42.1)(vitest@1.4.0) @@ -1422,8 +1455,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1464,6 +1497,9 @@ importers: '@jimp/test-utils': specifier: workspace:* version: link:../../packages/test-utils + '@types/node': + specifier: ^20.12.5 + version: 20.12.5 '@vitest/browser': specifier: ^1.4.0 version: 1.4.0(playwright@1.42.1)(vitest@1.4.0) @@ -1474,8 +1510,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1529,8 +1565,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -1584,8 +1620,8 @@ importers: specifier: ^1.12.0 version: 1.12.0 typescript: - specifier: ^5.4.2 - version: 5.4.2 + specifier: ^5.5.4 + version: 5.5.4 vite-plugin-node-polyfills: specifier: ^0.21.0 version: 0.21.0(rollup@4.21.2)(vite@5.4.2(@types/node@20.12.5)(terser@5.30.3)) @@ -7079,10 +7115,10 @@ packages: peerDependencies: typedoc: 0.26.x - typedoc-plugin-zod@1.1.2: - resolution: {integrity: sha512-jsmuYg1xsGjwKdhKN4tgRYORnbKpU7v5B1ZpsazMH5lUsI6ZLxBqAY5iiZ06oz/01gHOsAdhpABgWD97MOjKQA==} + typedoc-plugin-zod@1.2.1: + resolution: {integrity: sha512-oPo0PhcryKNR9UYZ6F4LFqDpQEBtNRQe6CpRTOUGrdqZOeoIZtJBVVZnSn/pBJiBU+Y6iZ/HsPESLZn1BPeLkw==} peerDependencies: - typedoc: 0.23.x || 0.24.x || 0.25.x + typedoc: 0.23.x || 0.24.x || 0.25.x || 0.26.x typedoc@0.26.6: resolution: {integrity: sha512-SfEU3SH3wHNaxhFPjaZE2kNl/NFtLNW5c1oHsg7mti7GjmUj1Roq6osBQeMd+F4kL0BoRBBr8gQAuqBlfFu8LA==} @@ -7105,13 +7141,13 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.4.2: - resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} + typescript@5.4.3: + resolution: {integrity: sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==} engines: {node: '>=14.17'} hasBin: true - typescript@5.4.3: - resolution: {integrity: sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==} + typescript@5.5.4: + resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} engines: {node: '>=14.17'} hasBin: true @@ -7914,10 +7950,10 @@ snapshots: dependencies: yaml: 2.5.0 - '@auto-it/all-contributors@11.2.1(@types/node@20.12.5)(typescript@5.4.3)': + '@auto-it/all-contributors@11.2.1(@types/node@20.12.5)(typescript@5.5.4)': dependencies: '@auto-it/bot-list': 11.2.1 - '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) '@octokit/rest': 18.12.0 all-contributors-cli: 6.19.0 anymatch: 3.1.3 @@ -7938,10 +7974,10 @@ snapshots: '@auto-it/bot-list@11.2.1': {} - '@auto-it/core@11.2.1(@types/node@20.12.5)(typescript@5.4.3)': + '@auto-it/core@11.2.1(@types/node@20.12.5)(typescript@5.5.4)': dependencies: '@auto-it/bot-list': 11.2.1 - '@endemolshinegroup/cosmiconfig-typescript-loader': 3.0.2(cosmiconfig@7.0.0)(typescript@5.4.3) + '@endemolshinegroup/cosmiconfig-typescript-loader': 3.0.2(cosmiconfig@7.0.0)(typescript@5.5.4) '@octokit/core': 3.6.0 '@octokit/plugin-enterprise-compatibility': 1.3.0 '@octokit/plugin-retry': 3.0.9 @@ -7975,10 +8011,10 @@ snapshots: tapable: 2.2.1 terminal-link: 2.1.1 tinycolor2: 1.6.0 - ts-node: 10.9.2(@types/node@20.12.5)(typescript@5.4.3) + ts-node: 10.9.2(@types/node@20.12.5)(typescript@5.5.4) tslib: 2.1.0 type-fest: 0.21.3 - typescript: 5.4.3 + typescript: 5.5.4 typescript-memoize: 1.1.1 url-join: 4.0.1 optionalDependencies: @@ -7989,10 +8025,10 @@ snapshots: - encoding - supports-color - '@auto-it/first-time-contributor@11.2.1(@types/node@20.12.5)(typescript@5.4.3)': + '@auto-it/first-time-contributor@11.2.1(@types/node@20.12.5)(typescript@5.5.4)': dependencies: '@auto-it/bot-list': 11.2.1 - '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) array.prototype.flatmap: 1.3.2 endent: 2.1.0 tslib: 2.1.0 @@ -8005,9 +8041,9 @@ snapshots: - supports-color - typescript - '@auto-it/npm@11.2.1(@types/node@20.12.5)(typescript@5.4.3)': + '@auto-it/npm@11.2.1(@types/node@20.12.5)(typescript@5.5.4)': dependencies: - '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) '@auto-it/package-json-utils': 11.2.1 await-to-js: 3.0.0 endent: 2.1.0 @@ -8034,10 +8070,10 @@ snapshots: parse-author: 2.0.0 parse-github-url: 1.0.2 - '@auto-it/released@11.2.1(@types/node@20.12.5)(typescript@5.4.3)': + '@auto-it/released@11.2.1(@types/node@20.12.5)(typescript@5.5.4)': dependencies: '@auto-it/bot-list': 11.2.1 - '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) deepmerge: 4.3.1 fp-ts: 2.16.3 io-ts: 2.2.21(fp-ts@2.16.3) @@ -8050,9 +8086,9 @@ snapshots: - supports-color - typescript - '@auto-it/version-file@11.2.1(@types/node@20.12.5)(typescript@5.4.3)': + '@auto-it/version-file@11.2.1(@types/node@20.12.5)(typescript@5.5.4)': dependencies: - '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) fp-ts: 2.16.3 io-ts: 2.2.21(fp-ts@2.16.3) semver: 7.6.0 @@ -8293,12 +8329,12 @@ snapshots: tslib: 2.6.2 optional: true - '@endemolshinegroup/cosmiconfig-typescript-loader@3.0.2(cosmiconfig@7.0.0)(typescript@5.4.3)': + '@endemolshinegroup/cosmiconfig-typescript-loader@3.0.2(cosmiconfig@7.0.0)(typescript@5.5.4)': dependencies: cosmiconfig: 7.0.0 lodash.get: 4.4.2 make-error: 1.3.6 - ts-node: 9.1.1(typescript@5.4.3) + ts-node: 9.1.1(typescript@5.5.4) tslib: 2.6.2 transitivePeerDependencies: - typescript @@ -9087,7 +9123,7 @@ snapshots: '@tsconfig/node16@1.0.4': {} - '@turbo/gen@1.12.5(@types/node@20.12.5)(typescript@5.4.3)': + '@turbo/gen@1.12.5(@types/node@20.12.5)(typescript@5.5.4)': dependencies: '@turbo/workspaces': 1.12.5 chalk: 2.4.2 @@ -9097,7 +9133,7 @@ snapshots: minimatch: 9.0.3 node-plop: 0.26.3 proxy-agent: 6.4.0 - ts-node: 10.9.2(@types/node@20.12.5)(typescript@5.4.3) + ts-node: 10.9.2(@types/node@20.12.5)(typescript@5.5.4) update-check: 1.5.4 validate-npm-package-name: 5.0.0 transitivePeerDependencies: @@ -9366,13 +9402,13 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.4.2))(eslint@8.57.0)(typescript@5.4.2)': + '@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 7.2.0(eslint@8.57.0)(typescript@5.4.2) + '@typescript-eslint/parser': 7.2.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/scope-manager': 7.2.0 - '@typescript-eslint/type-utils': 7.2.0(eslint@8.57.0)(typescript@5.4.2) - '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.4.2) + '@typescript-eslint/type-utils': 7.2.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/visitor-keys': 7.2.0 debug: 4.3.4 eslint: 8.57.0 @@ -9380,22 +9416,22 @@ snapshots: ignore: 5.3.1 natural-compare: 1.4.0 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.4.2) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 5.4.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.4.2)': + '@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@typescript-eslint/scope-manager': 7.2.0 '@typescript-eslint/types': 7.2.0 - '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.4.2) + '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.5.4) '@typescript-eslint/visitor-keys': 7.2.0 debug: 4.3.4 eslint: 8.57.0 optionalDependencies: - typescript: 5.4.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color @@ -9404,21 +9440,21 @@ snapshots: '@typescript-eslint/types': 7.2.0 '@typescript-eslint/visitor-keys': 7.2.0 - '@typescript-eslint/type-utils@7.2.0(eslint@8.57.0)(typescript@5.4.2)': + '@typescript-eslint/type-utils@7.2.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: - '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.4.2) - '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.4.2) + '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.5.4) + '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.5.4) debug: 4.3.4 eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.4.2) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 5.4.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color '@typescript-eslint/types@7.2.0': {} - '@typescript-eslint/typescript-estree@7.2.0(typescript@5.4.2)': + '@typescript-eslint/typescript-estree@7.2.0(typescript@5.5.4)': dependencies: '@typescript-eslint/types': 7.2.0 '@typescript-eslint/visitor-keys': 7.2.0 @@ -9427,20 +9463,20 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.3 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.4.2) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 5.4.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@7.2.0(eslint@8.57.0)(typescript@5.4.2)': + '@typescript-eslint/utils@7.2.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 7.2.0 '@typescript-eslint/types': 7.2.0 - '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.4.2) + '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.5.4) eslint: 8.57.0 semver: 7.6.0 transitivePeerDependencies: @@ -9917,12 +9953,12 @@ snapshots: author-regex@1.0.0: {} - auto@11.2.1(@types/node@20.12.5)(typescript@5.4.3): + auto@11.2.1(@types/node@20.12.5)(typescript@5.5.4): dependencies: - '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) - '@auto-it/npm': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) - '@auto-it/released': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) - '@auto-it/version-file': 11.2.1(@types/node@20.12.5)(typescript@5.4.3) + '@auto-it/core': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) + '@auto-it/npm': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) + '@auto-it/released': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) + '@auto-it/version-file': 11.2.1(@types/node@20.12.5)(typescript@5.5.4) await-to-js: 3.0.0 chalk: 4.1.2 command-line-application: 0.10.1 @@ -13731,11 +13767,11 @@ snapshots: hash-base: 3.1.0 inherits: 2.0.4 - rollup-plugin-dts@6.1.0(rollup@4.14.1)(typescript@5.4.2): + rollup-plugin-dts@6.1.0(rollup@4.14.1)(typescript@5.5.4): dependencies: magic-string: 0.30.8 rollup: 4.14.1 - typescript: 5.4.2 + typescript: 5.5.4 optionalDependencies: '@babel/code-frame': 7.24.2 @@ -14408,11 +14444,11 @@ snapshots: trough@2.2.0: {} - ts-api-utils@1.3.0(typescript@5.4.2): + ts-api-utils@1.3.0(typescript@5.5.4): dependencies: - typescript: 5.4.2 + typescript: 5.5.4 - ts-node@10.9.2(@types/node@20.12.5)(typescript@5.4.3): + ts-node@10.9.2(@types/node@20.12.5)(typescript@5.5.4): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.9 @@ -14426,18 +14462,18 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.4.3 + typescript: 5.5.4 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@9.1.1(typescript@5.4.3): + ts-node@9.1.1(typescript@5.5.4): dependencies: arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 source-map-support: 0.5.21 - typescript: 5.4.3 + typescript: 5.5.4 yn: 3.1.1 tsconfck@3.1.3(typescript@5.4.3): @@ -14549,7 +14585,7 @@ snapshots: dependencies: typedoc: 0.26.6(typescript@5.4.3) - typedoc-plugin-zod@1.1.2(typedoc@0.26.6(typescript@5.4.3)): + typedoc-plugin-zod@1.2.1(typedoc@0.26.6(typescript@5.4.3)): dependencies: typedoc: 0.26.6(typescript@5.4.3) @@ -14572,10 +14608,10 @@ snapshots: typescript@5.3.3: {} - typescript@5.4.2: {} - typescript@5.4.3: {} + typescript@5.5.4: {} + typical@4.0.0: {} typical@5.2.0: {} diff --git a/refactor.js b/refactor.js index 673aff63..8544c295 100644 --- a/refactor.js +++ b/refactor.js @@ -8,10 +8,10 @@ function addPublishConfigToPackageJson(directory) { addPublishConfigToPackageJson(fullPath); } else if (entry.isFile() && entry.name === "package.json") { const packageJson = JSON.parse(fs.readFileSync(fullPath, "utf8")); - if (!packageJson.publishConfig) { - packageJson.publishConfig = {}; + if (!packageJson.scripts) { + packageJson.scripts = {}; } - packageJson.sideEffects = false; + packageJson.scripts.clean = 'rm -rf node_modules .tshy .tshy-build dist .turbo' fs.writeFileSync(fullPath, JSON.stringify(packageJson, null, 2)); console.log(`Updated publishConfig in: ${fullPath}`); } diff --git a/turbo/generators/templates/package/package.json b/turbo/generators/templates/package/package.json index 8753668f..30a2edd4 100644 --- a/turbo/generators/templates/package/package.json +++ b/turbo/generators/templates/package/package.json @@ -6,7 +6,8 @@ "lint": "eslint .", "test": "vitest", "build": "tshy", - "dev": "tshy --watch" + "dev": "tshy --watch", + "clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" }, "author": "Andrew Lisowski ", "license": "MIT", @@ -15,7 +16,7 @@ "@jimp/config-typescript": "workspace:*", "eslint": "^8.57.0", "tshy": "^1.12.0", - "typescript": "^5.4.2", + "typescript": "^5.5.4", "vitest": "^1.4.0" }, "tshy": { @@ -47,4 +48,4 @@ "access": "public" }, "sideEffects": false -} \ No newline at end of file +}