-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
package.json
106 lines (106 loc) · 3.1 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "otplib-repo",
"description": "HMAC-based (HOTP) and Time-based (TOTP) One-Time Password library",
"private": true,
"repository": "https://github.com/yeojz/otplib",
"author": "Gerald Yeo <[email protected]>",
"license": "MIT",
"bugs": "https://github.com/yeojz/otplib/issues",
"homepage": "https://yeojz.otplib.dev",
"scripts": {
"ci:node8": "./scripts/ci-node8.sh",
"build:site": "./scripts/build-site.sh",
"build": "./scripts/build.sh",
"clean": "rimraf coverage packages/**/builds",
"format": "prettier --write \"{packages,scripts,configs,tests}/**/*.{ts,tsx,js,jsx,json,md,mdx}\"",
"lint": "tsc --noEmit",
"release:beta": " npx lerna publish from-package --contents builds --dist-tag next",
"release:stable": "npx lerna publish from-package --contents builds --dist-tag latest",
"setup": "./scripts/setup.sh",
"test:extras": "./scripts/test-extras.sh",
"test:runner": "jest --runInBand",
"test": "./scripts/test.sh",
"update:release-notes": "npx conventional-github-releaser -p angular",
"upload:coverage": "cat ./coverage/lcov.info | npx coveralls"
},
"keywords": [
"totp",
"hotp",
"otp",
"authenticator",
"one time password",
"google authenticator",
"authentication",
"2FA",
"2 factor",
"node",
"browser"
],
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.7",
"@babel/preset-typescript": "^7.7.7",
"@babel/runtime": "^7.7.7",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^7.1.1",
"@types/jest": "^26.0.0",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"babel-jest": "^26.0.1",
"babel-loader": "^8.0.6",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.8.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"lerna": "^3.19.0",
"prettier": "^2.0.1",
"puppeteer": "^7.0.1",
"rimraf": "^3.0.0",
"rollup": "^2.7.3",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-cleanup": "^3.1.1",
"typescript": "^4.0.2",
"webpack": "^4.41.4",
"webpack-cli": "^4.0.0"
},
"jest": {
"collectCoverageFrom": [
"packages/**/*.{js,ts}",
"!**/node_modules/**",
"!packages/otplib-preset-browser/**",
"!**/builds/*",
"!**/externals/*",
"!**/extras/*",
"!**/tests/*"
],
"coverageDirectory": "./coverage/",
"modulePathIgnorePatterns": [
"<rootDir>/.*/__mocks__",
"<rootDir>/packages/.*/builds"
],
"resetMocks": true,
"setupFiles": [],
"testPathIgnorePatterns": [
"/node_modules/",
"/builds/"
],
"testURL": "http://localhost",
"moduleNameMapper": {
"@builds/(.*)$": "<rootDir>/packages/otplib-$1/builds",
"@otplib/(.*)$": "<rootDir>/packages/otplib-$1",
"@tests/(.*)$": "<rootDir>/tests/$1"
},
"transform": {
"^.+\\.(js|ts)$": [
"babel-jest",
{
"rootMode": "upward"
}
]
}
},
"prettier": {
"singleQuote": true
}
}