Skip to content

Commit

Permalink
feat: update google-fonts-helper (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Mar 14, 2024
1 parent 4cb8ef1 commit f1f0120
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"build": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"lint": "eslint --ext .js,.ts,.vue",
"prepack": "pnpm build",
"release": "pnpm test && pnpm prepack && pnpm changelogen --release --push && pnpm publish",
"test": "pnpm lint && vitest run --coverage"
},
"dependencies": {
"@nuxt/kit": "^3.10.3",
"google-fonts-helper": "^3.4.1",
"google-fonts-helper": "^3.5.0",
"pathe": "^1.1.2"
},
"devDependencies": {
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default defineNuxtModule<ModuleOptions>({
head.link = head.link.filter(link => !isValidURL(String(link.href)))

// download
if (options.download) {
if (options.download && options.outputDir) {
const outputDir = await resolvePath(options.outputDir)

try {
Expand Down Expand Up @@ -117,7 +117,7 @@ export default defineNuxtModule<ModuleOptions>({

await downloader.execute()

if (options.inject) {
if (options.inject && options.stylePath) {
nuxt.options.css.push(resolve(outputDir, options.stylePath))
}

Expand Down

0 comments on commit f1f0120

Please sign in to comment.