Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 2.3 KB
/
Copy pathpackage.json
File metadata and controls
83 lines (83 loc) · 2.3 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"name": "timeago.js",
"officialName": "timeago.js",
"version": "4.3.1",
"summary": "timeago.js is a nano library (less than 2kb) used to format datetime with `*** time ago` statement. eg: '3 hours ago'.",
"description": "timeago.js is a nano library (less than 2kb) used to format datetime with `*** time ago` statement. eg: '3 hours ago'. i18n supported.",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"unpkg": "dist/timeago.min.js",
"browser": "dist/timeago.min.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./lib/*": {
"import": {
"types": "./dist/esm/*.d.ts",
"default": "./dist/esm/*.js"
},
"require": {
"types": "./dist/lib/*.d.ts",
"default": "./dist/lib/*.js"
}
},
"./esm/*": {
"import": {
"types": "./dist/esm/*.d.ts",
"default": "./dist/esm/*.js"
}
}
},
"allowScripts": {
"esbuild": true
},
"files": [
"dist",
"src"
],
"scripts": {
"test": "vitest run --coverage",
"test:watch": "vitest",
"build": "rimraf dist && run-s build:*",
"build:lib": "vite build",
"build:umd": "vite build --config vite.umd.config.ts",
"build:full": "vite build --config vite.full.config.ts",
"build:cjs": "tsc --project tsconfig.json --module CommonJS --moduleResolution Node --outDir dist/lib --sourceMap false",
"build:esm": "tsc --project tsconfig.json --module ESNext --moduleResolution Node --outDir dist/esm --sourceMap false",
"build:dts": "tsc --emitDeclarationOnly --outDir dist",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@vitest/coverage-v8": "^4.1.11",
"jsdom": "^24.1.3",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.10",
"terser": "^5.48.0",
"typescript": "^5.9.3",
"vite": "^6.4.3",
"vitest": "^4.1.11"
},
"author": {
"name": "hustcc",
"url": "https://timeago.ling.pub"
},
"license": "MIT",
"keywords": [
"timeago",
"datetime",
"*** time ago",
"date",
"javascript timeago"
],
"repository": {
"type": "git",
"url": "https://github.com/hustcc/timeago.js"
},
"bugs": {
"url": "https://github.com/hustcc/timeago.js/issues"
}
}