1 | {
|
2 | "name": "short-time-ago",
|
3 | "description": "A small, no dependencies, Typescript utility to describe time differences in a human readable format (for example, '1 minute ago')",
|
4 | "version": "2.0.0",
|
5 | "author": "velut",
|
6 | "license": "MIT",
|
7 | "amdName": "short-time-ago",
|
8 | "source": "./src/index.ts",
|
9 | "main": "./dist/index.js",
|
10 | "types": "./dist/index.d.ts",
|
11 | "module": "./dist/index.module.js",
|
12 | "esmodule": "./dist/index.modern.js",
|
13 | "browser": "./dist/index.umd.js",
|
14 | "unpkg": "./dist/index.umd.js",
|
15 | "exports": {
|
16 | "require": "./dist/index.js",
|
17 | "import": "./dist/index.modern.js",
|
18 | "browser": "./dist/index.umd.js",
|
19 | "default": "./dist/index.js"
|
20 | },
|
21 | "sideEffects": false,
|
22 | "files": [
|
23 | "dist",
|
24 | "src"
|
25 | ],
|
26 | "engines": {
|
27 | "node": ">=10"
|
28 | },
|
29 | "repository": {
|
30 | "type": "git",
|
31 | "url": "https://github.com/velut/node-short-time-ago"
|
32 | },
|
33 | "bugs": {
|
34 | "url": "https://github.com/velut/node-short-time-ago/issues"
|
35 | },
|
36 | "scripts": {
|
37 | "start": "tsdx watch",
|
38 | "build:tsdx": "tsdx build --format cjs,esm,umd",
|
39 | "build": "microbundle --strict",
|
40 | "test": "tsdx test --runInBand",
|
41 | "test:cov": "tsdx test --runInBand --coverage",
|
42 | "test:watch": "tsdx test --runInBand --watchAll --coverage",
|
43 | "test:ci": "tsdx test --runInBand --ci --coverage",
|
44 | "lint": "tsdx lint src test",
|
45 | "prepare": "yarn build",
|
46 | "pre-push": "yarn && yarn lint && yarn build && yarn test:cov",
|
47 | "semantic-release": "semantic-release",
|
48 | "release": "np"
|
49 | },
|
50 | "peerDependencies": {},
|
51 | "husky": {
|
52 | "hooks": {
|
53 | "pre-commit": "yarn lint",
|
54 | "pre-push": "yarn pre-push"
|
55 | }
|
56 | },
|
57 | "prettier": {
|
58 | "printWidth": 80,
|
59 | "semi": true,
|
60 | "singleQuote": true,
|
61 | "tabWidth": 4,
|
62 | "trailingComma": "es5",
|
63 | "arrowParens": "always"
|
64 | },
|
65 | "np": {
|
66 | "branch": "main"
|
67 | },
|
68 | "devDependencies": {
|
69 | "eslint-plugin-prettier": "3.3.0",
|
70 | "husky": "4.3.6",
|
71 | "microbundle": "0.13.0",
|
72 | "np": "7.1.0",
|
73 | "prettier": "2.2.1",
|
74 | "semantic-release": "17.3.1",
|
75 | "tsdx": "0.14.1",
|
76 | "tslib": "2.0.3",
|
77 | "typescript": "4.1.3"
|
78 | },
|
79 | "keywords": [
|
80 | "time",
|
81 | "ago",
|
82 | "date",
|
83 | "format",
|
84 | "relative",
|
85 | "human",
|
86 | "readable",
|
87 | "typescript"
|
88 | ]
|
89 | }
|