fix(pkg): add implicit dependencies (#3682)

* chore: prevent unintentional inlinings

* fix: workaround hoisting by moving `unimport` to peerDeps

* add missing dep

* add unimport as bridge dpeendency

* fix(nuxt3): explicitly type presets

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
This commit is contained in:
Daniel Roe 2022-03-16 12:13:50 +00:00 committed by GitHub
parent bc3db2ccdd
commit 5c9cf9cf9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 2 deletions

View File

@ -56,6 +56,7 @@
"scule": "^0.2.1",
"semver": "^7.3.5",
"ufo": "^0.8.1",
"unimport": "^0.1.0",
"unplugin": "^0.5.2",
"unplugin-vue2-script-setup": "^0.10.0",
"untyped": "^0.4.3",

View File

@ -56,6 +56,7 @@
"nuxi": "3.0.0",
"ohmyfetch": "^0.4.15",
"pathe": "^0.2.0",
"perfect-debounce": "^0.1.3",
"scule": "^0.2.1",
"ufo": "^0.8.1",
"unimport": "^0.1.0",

View File

@ -1,6 +1,6 @@
import { defineUnimportPreset } from 'unimport'
import { defineUnimportPreset, Preset } from 'unimport'
export const commonPresets = [
export const commonPresets: Preset[] = [
// #meta
defineUnimportPreset({
from: '#meta',

View File

@ -20,6 +20,7 @@ export default defineBuildConfig({
externals: [
// Type imports
'vue-meta',
'vue-router',
'vue',
'hookable',
'webpack',

View File

@ -2631,6 +2631,7 @@ __metadata:
semver: ^7.3.5
ufo: ^0.8.1
unbuild: latest
unimport: ^0.1.0
unplugin: ^0.5.2
unplugin-vue2-script-setup: ^0.10.0
untyped: ^0.4.3
@ -15438,6 +15439,7 @@ __metadata:
nuxi: 3.0.0
ohmyfetch: ^0.4.15
pathe: ^0.2.0
perfect-debounce: ^0.1.3
scule: ^0.2.1
ufo: ^0.8.1
unbuild: latest