Skip to content

Commit

Permalink
Fix build (#1303)
Browse files Browse the repository at this point in the history
* add clean script

* add deps

* add missing deps

* upgrade typescript

* fix build

* fix test
  • Loading branch information
hipstersmoothie authored Sep 1, 2024
1 parent bc7aeef commit e65d63d
Show file tree
Hide file tree
Showing 40 changed files with 300 additions and 220 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ dist/
# ESM Version
es/
jimp.js.*
repro-playground.js
repro-playground.js
**/src/package.json
4 changes: 2 additions & 2 deletions packages/config-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"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",
"@typescript-eslint/parser": "^7.2.0",
"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
Expand Down
7 changes: 5 additions & 2 deletions packages/config-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false
}
"sideEffects": false,
"scripts": {
"clean": "rm -rf node_modules .tshy .tshy-build dist .turbo"
}
}
5 changes: 3 additions & 2 deletions packages/config-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"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 <[email protected]>",
"license": "MIT",
"devDependencies": {
"@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": {
Expand Down
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions packages/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions packages/file-ops/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/jimp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions plugins/js-bmp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
6 changes: 4 additions & 2 deletions plugins/js-gif/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
5 changes: 3 additions & 2 deletions plugins/js-jpeg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions plugins/js-png/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
6 changes: 4 additions & 2 deletions plugins/js-tiff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions plugins/plugin-blit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
5 changes: 3 additions & 2 deletions plugins/plugin-blur/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
5 changes: 3 additions & 2 deletions plugins/plugin-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
"license": "MIT",
Expand All @@ -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"
},
Expand Down
Loading

0 comments on commit e65d63d

Please sign in to comment.