diff --git a/packages/vant-popperjs/package.json b/packages/vant-popperjs/package.json index 7987c5762..a5929701e 100644 --- a/packages/vant-popperjs/package.json +++ b/packages/vant-popperjs/package.json @@ -36,10 +36,8 @@ "bugs": "https://github.com/vant-ui/vant/issues", "author": "chenjiahan", "license": "MIT", - "dependencies": { - "@popperjs/core": "^2.11.6" - }, "devDependencies": { + "@popperjs/core": "^2.11.6", "esbuild": "^0.14.54", "release-it": "^15.4.1", "typescript": "^4.8.2" diff --git a/packages/vant-popperjs/src/index.ts b/packages/vant-popperjs/src/index.ts index 76cb8bd92..51c82b6c6 100644 --- a/packages/vant-popperjs/src/index.ts +++ b/packages/vant-popperjs/src/index.ts @@ -1,6 +1,6 @@ import { createPopper } from '@popperjs/core/lib/popper-lite'; import offsetModifier from '@popperjs/core/lib/modifiers/offset'; -import type { Instance, Placement } from '@popperjs/core'; +import type { Instance } from '@popperjs/core'; export { createPopper, offsetModifier }; -export type { Instance, Placement }; +export type { Instance }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2c16510d..b3e9ad8a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -236,9 +236,8 @@ importers: esbuild: ^0.14.54 release-it: ^15.4.1 typescript: ^4.8.2 - dependencies: - '@popperjs/core': 2.11.6 devDependencies: + '@popperjs/core': 2.11.6 esbuild: 0.14.54 release-it: 15.4.1 typescript: 4.8.2 @@ -1392,7 +1391,7 @@ packages: /@popperjs/core/2.11.6: resolution: {integrity: sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==} - dev: false + dev: true /@rollup/pluginutils/4.2.1: resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} @@ -3584,6 +3583,17 @@ packages: glob-parent: 5.1.2 merge2: 1.4.1 micromatch: 4.0.5 + dev: false + + /fast-glob/3.2.12: + resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 /fast-json-stable-stringify/2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} @@ -3915,7 +3925,7 @@ packages: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.2.11 + fast-glob: 3.2.12 ignore: 5.2.0 merge2: 1.4.1 slash: 3.0.0 @@ -3925,7 +3935,7 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: dir-glob: 3.0.1 - fast-glob: 3.2.11 + fast-glob: 3.2.12 ignore: 5.2.0 merge2: 1.4.1 slash: 4.0.0