Skip to content

Commit

Permalink
feat: loosen deps to allow more recent versions of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Jul 21, 2022
1 parent 3b2ac77 commit 3e3e94a
Show file tree
Hide file tree
Showing 11 changed files with 1,590 additions and 1,551 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Add it to your plugins in `vite.config.ts`

```ts
import { defineConfig } from 'vite'
import imagePresets, { widthPreset } from 'vite-plugin-image-presets'
import imagePresets, { widthPreset } from 'vite-plugin-image-presets'

export default defineConfig({
plugins: [
Expand Down Expand Up @@ -87,12 +87,9 @@ You can also use the `src` and `srcset` query parameters for direct usage:

```js
import srcset from '~/images/logo.jpg?preset=thumbnail&srcset'

expect(srcset).toEqual('/assets/logo.063759b1.jpeg 48w, /assets/logo.81d93491.jpeg 96w')


import src from '~/images/logo.jpg?preset=thumbnail&src'

expect(srcset).toEqual('/assets/logo.063759b1.jpeg 48w, /assets/logo.81d93491.jpeg 96w')
expect(src).toEqual('/assets/logo.81d93491.jpeg')
```

Expand Down
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"now": "npm run build && npm run preview"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.0.1",
"@vitejs/plugin-vue": "^3.0.1",
"cross-env": "^7.0.3",
"typescript": "^4.1.3",
"vite": "^2.7",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vite-plugin-image-presets": "workspace:*",
"vue": "^3.2"
"vue": "^3.2.37"
}
}
71 changes: 37 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
{
"name": "vite-plugin-image-presets",
"description": "Image Presets for Vite.js apps. Optimize, resize, and process images consistently and with ease.",
"version": "0.3.1",
"files": [
"dist"
],
"sideEffects": false,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"license": "MIT",
"version": "0.3.1",
"description": "Image Presets for Vite.js apps. Optimize, resize, and process images consistently and with ease.",
"author": "Máximo Mussini <maximomussini@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/ElMassimo/vite-plugin-image-presets",
"repository": {
"type": "git",
"url": "https://github.com/ElMassimo/vite-plugin-image-presets"
},
"homepage": "https://github.com/ElMassimo/vite-plugin-image-presets",
"bugs": "https://github.com/ElMassimo/vite-plugin-image-presets/issues",
"keywords": [
"plugin",
Expand All @@ -35,6 +21,20 @@
"vite-plugin",
"vitejs"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"lint": "eslint .",
"test": "vitest --config example/vite.config.ts",
Expand All @@ -49,34 +49,37 @@
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
},
"dependencies": {
"@nuxt/devalue": "^2.0.0",
"@nuxt/devalue": "^2.0",
"debug": "^4.3",
"pathe": "^0.2.0",
"sharp": "^0.29.3"
"pathe": "^0.2",
"sharp": "^0.29"
},
"devDependencies": {
"@mussi/eslint-config": "^0.5",
"@types/debug": "^4.1",
"@types/node": "^14.14",
"@antfu/eslint-config": "*",
"@types/debug": "^4.1.7",
"@types/node": "^14.18.22",
"@types/sharp": "^0.29.5",
"conventional-changelog-cli": "^2.2.2",
"cross-spawn": "^7.0.3",
"enquirer": "^2.3.6",
"eslint": "^7.17.0",
"happy-dom": "^2.25.1",
"minimist": "^1.2.5",
"eslint": "^8.20.0",
"happy-dom": "^2.55.0",
"minimist": "^1.2.6",
"picocolors": "^1.0.0",
"rollup": "^2.59",
"semver": "^7.3.5",
"tsup": "^5",
"typescript": "^4.5",
"vite": "^2.7.0",
"vitest": "^0.0.132"
"rollup": "^2.77.0",
"semver": "^7.3.7",
"tsup": "^6.1.3",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"vitest": "^0.18.1"
},
"eslintConfig": {
"extends": [
"@mussi/eslint-config"
"@antfu/eslint-config"
],
"rules": {
"@typescript-eslint/space-before-function-paren": ["warn", "always"]
},
"globals": {
"$ref": "readonly",
"$computed": "readonly",
Expand Down

0 comments on commit 3e3e94a

Please sign in to comment.