From 2eefe204d795adf4ba8715e55f00159022994733 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 30 Oct 2020 23:24:13 +0900 Subject: [PATCH] fix!(loader): move blurhash to peerDeps (#38) --- README.md | 6 +++--- example/package.json | 1 + package.json | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0de33b3..fc1a383 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,18 @@ A blurhash loader module for webpack. -[example](https://blurhash-loader-example.vercel.app/) +[Demo](https://blurhash-loader-example.vercel.app/) ([source](example/)) ## Install ```console -$ npm install -D blurhash-loader +$ npm install -D blurhash-loader blurhash ``` or ```console -$ yarn add -D blurhash-loader +$ yarn add -D blurhash-loader blurhash ``` ## Usage diff --git a/example/package.json b/example/package.json index d3c7751..e6875f6 100644 --- a/example/package.json +++ b/example/package.json @@ -9,6 +9,7 @@ "postinstall": "cd .. && yarn install --frozen-lockfile && yarn build" }, "dependencies": { + "blurhash": "^1.1.3", "next": "10.0.0", "react": "17.0.1", "react-blurhash": "^0.1.3", diff --git a/package.json b/package.json index 4165d60..6efb11e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "url": "https://github.com/inabagumi/blurhash-loader/issues" }, "dependencies": { - "blurhash": "^1.1.3", "loader-utils": "^2.0.0", "sharp": "^0.26.2" }, @@ -20,6 +19,7 @@ "@types/loader-utils": "^2.0.1", "@types/sharp": "^0.26.0", "@types/webpack": "^4.41.24", + "blurhash": "^1.1.3", "conventional-github-releaser": "^3.1.5", "eslint": "^7.12.1", "microbundle": "^0.12.4", @@ -34,6 +34,9 @@ ], "license": "MIT", "name": "blurhash-loader", + "peerDependencies": { + "blurhash": "^1.0.0" + }, "repository": { "type": "git", "url": "https://github.com/inabagumi/blurhash-loader.git"