Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 31, 2024
1 parent 4236621 commit 12a1e15
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"ufo": "^1.5.3",
"unplugin": "^1.10.0",
"unstorage": "^1.10.2",
"valibot": "^0.30.0"
"valibot": "^0.30.0",
"unimport": "^3.7.1"

Check failure on line 75 in package.json

View workflow job for this annotation

GitHub Actions / ci

Expected object keys to be in ascending order. 'unimport' should be before 'valibot'
},
"devDependencies": {
"@antfu/eslint-config": "2.8.3",
Expand All @@ -86,7 +87,6 @@
"nuxt-scripts-devtools": "latest",
"playwright-core": "^1.42.1",
"typescript": "^5.4.3",
"unimport": "^3.7.1",
"vitest": "^1.4.0"
},
"resolutions": {
Expand Down
5 changes: 5 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export default defineNuxtConfig({
],
devtools: { enabled: true },
scripts: {
register: {
confetti: {
version: 'latest',
},
},
// TODO globals / register / overrides
},
})
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default defineNuxtModule<ModuleOptions>({
})
addImports(registry)

// @ts-expect-error runtime
await nuxt.hooks.callHook('scripts:registry', registry)

if (config.globals?.length || Object.keys(config.register || {}).length) {
Expand Down

0 comments on commit 12a1e15

Please sign in to comment.