Skip to content

Commit

Permalink
wiip
Browse files Browse the repository at this point in the history
  • Loading branch information
benallfree committed Apr 24, 2024
1 parent df83fcd commit 6920c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plop/commands/helpers/cleanVerdaccioPackages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { existsSync, readFileSync, writeFileSync } from 'fs'
import { join } from 'path'
import { join, resolve } from 'path'
import type { CustomActionFunction } from 'plop'
import { parse } from 'yaml'
import { PACKAGE_ROOT } from '../../../src/util/getApp'
Expand All @@ -15,7 +15,7 @@ export const cleanVerdaccioPackages = (
onProgress(`Cleaning verdaccio packages ${packageNames.join(`, `)}`)
const configYaml = parse(readFileSync(VERDACCIO_CONFIG_PATH).toString())
const { storage } = configYaml
const dbPath = join(storage, `.verdaccio-db.json`)
const dbPath = resolve(PACKAGE_ROOT, storage, `.verdaccio-db.json`)
if (existsSync(dbPath)) {
const db = JSON.parse(readFileSync(dbPath).toString()) as {
list: string[]
Expand Down

0 comments on commit 6920c7c

Please sign in to comment.