Skip to content

Commit

Permalink
chore: remove ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Apr 11, 2024
1 parent b04a439 commit cd5cd49
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default defineNuxtModule<ModuleOptions>({
let remoteArg = parseArgs(argv, { remote: { type: 'string' } }).remote as string
remoteArg = (remoteArg === '' ? 'true' : remoteArg)
const runtimeConfig = nuxt.options.runtimeConfig
// @ts-ignore
const hub = runtimeConfig.hub = defu(runtimeConfig.hub || {}, options, {
// Self-hosted project
projectUrl: process.env.NUXT_HUB_PROJECT_URL || '',
Expand All @@ -121,7 +120,6 @@ export default defineNuxtModule<ModuleOptions>({
// validate remote option
if (hub.remote && !['true', 'production', 'preview'].includes(String(hub.remote))) {
log.error('Invalid remote option, should be `false`, `true`, `\'production\'` or `\'preview\'`')
// @ts-ignore
delete hub.remote
}
// Log when using a different Hub url
Expand Down Expand Up @@ -272,7 +270,6 @@ export default defineNuxtModule<ModuleOptions>({
process.exit(1)
}
// Update hub.env in runtimeConfig
// @ts-ignore
hub.env = env
}

Expand Down

0 comments on commit cd5cd49

Please sign in to comment.