Skip to content

Commit

Permalink
feat: ✨ expose PackageJson from type-fest
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 27, 2020
1 parent f4dbe14 commit a792cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"string-width": "^4.2.0",
"strip-json-comments": "^3.0.1",
"tslib": "1.11.1",
"type-fest": "^0.12.0",
"wrap-ansi": "^6.2.0",
"yamljs": "^0.3.0",
"yargs": "^15.1.0"
Expand Down
7 changes: 3 additions & 4 deletions src/package.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import fs from "fs"
import path from "path"

export type PackageJson = {
import { PackageJson as PJson } from "type-fest"

export type PackageJson = PJson & {
name: string
scripts?: { [key: string]: string }
dependencies?: { [key: string]: string }
ultra?: {
concurrent?: string[]
}
workspaces?: string[] | { packages?: string[] }
}

export type PackageJsonWithRoot = PackageJson & {
Expand Down

0 comments on commit a792cc5

Please sign in to comment.