-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
114 lines (114 loc) · 3.08 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
{
"name": "sqids",
"version": "0.3.0",
"description": "Generate YouTube-like ids from numbers.",
"keywords": [
"sqids",
"hashids",
"encode",
"ids"
],
"homepage": "https://sqids.org/javascript",
"bugs": {
"url": "https://github.com/sqids/sqids-javascript/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/sqids/sqids-javascript.git"
},
"license": "MIT",
"author": "sqids.org <[email protected]> (https://github.com/sqids)",
"contributors": [
{
"name": "Bazyli Brzóska",
"email": "[email protected]",
"url": "https://twitter.com/niieani"
}
],
"exports": {
".": {
"import": "./esm/sqids.js",
"require": "./cjs/sqids.js"
},
"./*": {
"import": "./esm/*.js",
"require": "./cjs/*.js"
},
"./cjs": {
"require": "./cjs/sqids.js"
},
"./cjs/*": {
"require": "./cjs/*.js"
},
"./esm/*": {
"import": "./esm/*.js"
},
"./package.json": "./package.json"
},
"main": "cjs/sqids.js",
"unpkg": "dist/sqids.js",
"module": "esm/sqids.js",
"source": "src/sqids.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",
"build:umd": "beemo webpack --entry=./src/sqids.ts --env 'outDir=dist' --env 'moduleTarget=umd' --env 'engineTarget=web' --env 'codeTarget=es6' --env 'name=Sqids' --env 'export=default' --env 'filename=sqids.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"
],
"engines": {
"node": ">=18"
},
"devDependencies": {
"@niieani/scaffold": "^1.7.8",
"nodemark": "^0.3.0",
"require-from-web": "^1.2.0",
"ts-node": "^10.9.1"
},
"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]"
}