Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(types): generate relative path in imports.d.ts (#6054)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Jul 22, 2022
1 parent d135608 commit d453729
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"scule": "^0.2.1",
"semver": "^7.3.7",
"unctx": "^1.1.4",
"unimport": "^0.6.1",
"unimport": "^0.6.2",
"untyped": "^0.4.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"ufo": "^0.8.5",
"unctx": "^1.1.4",
"unenv": "^0.5.2",
"unimport": "^0.6.1",
"unimport": "^0.6.2",
"unplugin": "^0.7.2",
"untyped": "^0.4.4",
"vue": "^3.2.37",
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/auto-imports/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function addDeclarationTemplates (ctx: Unimport) {

addTemplate({
filename: 'imports.d.ts',
getContents: () => ctx.toExports()
getContents: () => ctx.toExports(nuxt.options.buildDir)
})

addTemplate({
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"scule": "^0.2.1",
"std-env": "^3.1.1",
"ufo": "^0.8.5",
"unimport": "^0.6.1"
"unimport": "^0.6.2"
},
"engines": {
"node": "^14.16.0 || ^16.11.0 || ^17.0.0 || ^18.0.0"
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ __metadata:
semver: ^7.3.7
unbuild: latest
unctx: ^1.1.4
unimport: ^0.6.1
unimport: ^0.6.2
untyped: ^0.4.4
languageName: unknown
linkType: soft
Expand All @@ -1804,7 +1804,7 @@ __metadata:
std-env: ^3.1.1
ufo: ^0.8.5
unbuild: latest
unimport: ^0.6.1
unimport: ^0.6.2
vite: ~3.0.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -9844,7 +9844,7 @@ __metadata:
unbuild: latest
unctx: ^1.1.4
unenv: ^0.5.2
unimport: ^0.6.1
unimport: ^0.6.2
unplugin: ^0.7.2
untyped: ^0.4.4
vue: ^3.2.37
Expand Down Expand Up @@ -12915,9 +12915,9 @@ __metadata:
languageName: node
linkType: hard

"unimport@npm:^0.6.1":
version: 0.6.1
resolution: "unimport@npm:0.6.1"
"unimport@npm:^0.6.2":
version: 0.6.2
resolution: "unimport@npm:0.6.2"
dependencies:
"@rollup/pluginutils": ^4.2.1
escape-string-regexp: ^5.0.0
Expand All @@ -12929,7 +12929,7 @@ __metadata:
scule: ^0.2.1
strip-literal: ^0.4.0
unplugin: ^0.7.2
checksum: d142218753f124b5bfe112c218b4ffdefd93bcc0a579c9573dd50aa2c5df93a66d38137f7f94e1b1a5e13aae8ffbd2ce43839066809692e8ad71a12dece04175
checksum: 18736f191ea88e3f0b161f61077562f0a4c9df75b4959810b5ffb745542bb222876390c2bd4b4f8f9e2d1550949ac97e5159d6f3efdbc60b7cc1be3b13962e5b
languageName: node
linkType: hard

Expand Down

0 comments on commit d453729

Please sign in to comment.