-
Notifications
You must be signed in to change notification settings - Fork 203
/
package.json
122 lines (122 loc) · 3.35 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "hashids",
"description": "Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.",
"keywords": [
"hashids",
"hashid",
"hash",
"ids",
"youtube",
"bitly",
"obfuscate",
"encode",
"decode",
"encrypt",
"decrypt"
],
"homepage": "http://hashids.org/javascript",
"bugs": {
"url": "https://github.com/niieani/hashids.js/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/niieani/hashids.js.git"
},
"license": "MIT",
"author": "hashids.org <[email protected]> (https://github.com/hashids)",
"contributors": [
{
"name": "Ivan Akimov",
"email": "[email protected]",
"url": "https://twitter.com/IvanAkimov"
},
{
"name": "Bazyli Brzóska",
"email": "[email protected]",
"url": "https://twitter.com/niieani"
}
],
"exports": {
".": {
"import": "./esm/hashids.js",
"require": "./cjs/index.js"
},
"./*": {
"import": "./esm/*.js",
"require": "./cjs/*.js"
},
"./cjs": {
"require": "./cjs/index.js"
},
"./cjs/*": {
"require": "./cjs/*.js"
},
"./esm/*": {
"import": "./esm/*.js"
},
"./package.json": "./package.json"
},
"main": "cjs/index.js",
"unpkg": "dist/hashids.js",
"module": "esm/hashids.js",
"source": "src/hashids.ts",
"files": [
"cjs",
"esm",
"dist",
"lib",
"src"
],
"scripts": {
"benchmark": "yarn ts-node -O '{\"module\": \"commonjs\"}' -T src/tests/benchmark",
"postinstallDev": "yarn prepare",
"prepare": "rrun husky install .config/husky && yarn beemo create-config",
"build": "yarn build:cjs && yarn build:esm && yarn build:umd",
"release": "beemo run-script release",
"build:cjs": "yarn rrun tsc --outDir cjs --module commonjs --target es6 -p tsconfig.build.json",
"build:esm": "yarn rrun tsc --outDir esm --module esnext --target es6 -p tsconfig.build.json && ./add-extension.sh",
"build:umd": "beemo webpack --entry=./src/hashids.ts --env 'outDir=dist' --env 'moduleTarget=umd' --env 'engineTarget=web' --env 'codeTarget=es6' --env 'name=Hashids' --env 'export=default' --env 'filename=hashids.js'",
"clean": "git clean -dfX --exclude=node_modules src && beemo typescript:sync-project-refs",
"test:lint": "rrun eslint 'src/**'",
"test:code": "beemo jest",
"test:types": "yarn rrun tsc --noEmit",
"test:format": "yarn rrun prettier --check \"./{src,tests}/**/*[!.d].{.js,jsx,ts,tsx,json,md}\"",
"test": "yarn test:format && yarn test:types && yarn test:lint && yarn test:code",
"format": "yarn rrun prettier --write \"./{src,tests}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\""
},
"browserslist": [
"last 2 version",
"> 0.5%",
"maintained node versions",
"not dead"
],
"devDependencies": {
"@niieani/scaffold": "^1.7.14",
"nodemark": "^0.3.0",
"require-from-web": "^1.2.0",
"ts-node": "^10.9.2"
},
"publishConfig": {
"access": "public"
},
"release": {
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
{
"name": "main",
"channel": false
},
"next",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
]
},
"packageManager": "[email protected]"
}