()
| 127 | } |
| 128 | |
| 129 | export function usePackageJson() { |
| 130 | const context = useContext(PackageJsonContext); |
| 131 | |
| 132 | if (!context) { |
| 133 | throw new Error('usePackageJson must be used within a PackageJsonProvider'); |
| 134 | } |
| 135 | |
| 136 | return context; |
| 137 | } |
no outgoing calls
no test coverage detected