forked from sheepzh/time-tracker-4-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.ts
More file actions
27 lines (22 loc) · 679 Bytes
/
package.ts
File metadata and controls
27 lines (22 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Copyright (c) 2021 Hengyang Zhang
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
import packageJson from "../package.json"
type _AllPackageInfo = typeof packageJson
// The declaration of package.json
type _PackageInfo = Pick<_AllPackageInfo, 'name' | 'description' | 'version' | 'homepage' | 'author'>
const _default: _PackageInfo = {
name: packageJson.name,
description: packageJson.description,
version: packageJson.version,
homepage: packageJson.homepage,
author: packageJson.author
}
/**
* @since 1.8.0
*/
export const AUTHOR_EMAIL: string = packageJson.author.email
export default _default