-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
52 lines (52 loc) · 1.55 KB
/
package.json
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
{
"name": "durr",
"version": "0.0.9",
"license": "MIT",
"description": "A convenient, simple TypeScript duration library.",
"repository": {
"url": "https://github.com/kensand/durr.git"
},
"author": {
"name": "Kenneth Sanders",
"email": "npm@kensand.net"
},
"private": false,
"scripts": {
"prettier": "npx prettier --write .",
"_build": "tsc",
"build": "npm run _pre-build && npm run _build && npm run _post-build",
"_post-build": "npm run babel-cjs && npm run test",
"_pre-build": "npm run prettier",
"test": "jest",
"clean": "rm -rf dist",
"pub": "npm run clean && npm run update && npm run build && npm version patch && npm publish",
"update": "npm update --save && ((! git diff --exit-code package.json > /dev/null && git add package.json && git commit -m 'Dependency updates') || true)",
"babel-cjs": "babel -s true -d dist/cjs dist/esm"
},
"eslintConfig": {},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
"@babel/preset-env": "^7.20.2",
"@types/jest": "^29.2.6",
"@types/node": "^16.18.11",
"jest": "^29.3.1",
"prettier": "^2.8.3",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"files": [
"./dist/**"
],
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
}
}