From 73fd5e50bc54799719df051539896c442930d50f Mon Sep 17 00:00:00 2001 From: ruleeeer Date: Mon, 6 Dec 2021 14:40:41 +0800 Subject: [PATCH] build: move `semver` to dependencies --- packages/lib/package.json | 4 +--- pnpm-lock.yaml | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 01b5ff0b..40c8688a 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -35,9 +35,7 @@ }, "dependencies": { "estree-walker": "^1.0.1", - "magic-string": "^0.25.7" - }, - "peerDependencies": { + "magic-string": "^0.25.7", "semver": "^7.3.5" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index edb8321e..050d801c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -613,10 +613,12 @@ importers: estree-walker: ^1.0.1 magic-string: ^0.25.7 rollup: ^2.60.0 + semver: ^7.3.5 vite: ^2.5.0 dependencies: estree-walker: 1.0.1 magic-string: 0.25.7 + semver: 7.3.5 devDependencies: '@rollup/plugin-node-resolve': 13.0.6_rollup@2.60.2 '@rollup/plugin-typescript': 8.3.0_cf49768e670184c7e0e13e8a66db2d3a @@ -7329,7 +7331,6 @@ packages: engines: {node: '>=10'} dependencies: yallist: 4.0.0 - dev: true /magic-string/0.25.7: resolution: {integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==} @@ -8739,7 +8740,6 @@ packages: hasBin: true dependencies: lru-cache: 6.0.0 - dev: true /send/0.17.1: resolution: {integrity: sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==} @@ -10118,7 +10118,6 @@ packages: /yallist/4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - dev: true /yaml/1.10.2: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}