refactor: more cleanup #164

Merged
mcataford merged 11 commits from more-refactor into master 2021-03-19 20:49:27 +00:00
2 changed files with 7 additions and 4 deletions
Showing only changes of commit da7571fba5 - Show all commits

5
src/index.d.ts vendored
View file

@ -1,3 +1,8 @@
export type PackwatchArguments = {
cwd?: string
isUpdatingManifest?: boolean
}
export type Report = {
packageSize: string
unpackedSize?: string

View file

@ -6,16 +6,14 @@ import {
getCurrentPackageStats,
getPreviousPackageStats,
} from './utils'
import type { PackwatchArguments } from './index.d'
const MANIFEST_FILENAME = '.packwatch.json'
export default async function packwatch({
cwd,
isUpdatingManifest,
}: {
cwd?: string
isUpdatingManifest?: boolean
}): Promise<void> {
}: PackwatchArguments): Promise<void> {
const packageJsonPath = resolve(join(cwd, 'package.json'))
const manifestPath = resolve(join(cwd, MANIFEST_FILENAME))