-
-
Notifications
You must be signed in to change notification settings - Fork 403
Expand file tree
/
Copy pathpackage.json
More file actions
70 lines (70 loc) · 2.07 KB
/
Copy pathpackage.json
File metadata and controls
70 lines (70 loc) · 2.07 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
{
"name": "timeago.js",
"officialName": "timeago.js",
"version": "4.1.0",
"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": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./lib/*": {
"import": "./dist/esm/*.js",
"require": "./dist/lib/*.js"
},
"./esm/*": {
"import": "./dist/esm/*.js"
}
},
"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 --declaration false --sourceMap false",
"build:esm": "tsc --project tsconfig.json --module ESNext --moduleResolution Node --outDir dist/esm --declaration false --sourceMap false",
"build:dts": "tsc --emitDeclarationOnly --outDir dist",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@vitest/coverage-v8": "^2.1.9",
"jsdom": "^24.1.3",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.10",
"terser": "^5.48.0",
"typescript": "^5.9.3",
"vite": "^5.4.21",
"vitest": "^2.1.9"
},
"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"
}
}