-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpackage.json
107 lines (107 loc) · 3.5 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
{
"name": "ulidx",
"version": "2.4.1",
"description": "ULID generator for NodeJS and the browser",
"type": "module",
"exports": {
".": {
"types": {
"require": "./dist/index.d.cts",
"default": "./dist/index.d.ts"
},
"node": {
"require": "./dist/node/index.cjs",
"default": "./dist/node/index.js"
},
"default": {
"require": "./dist/browser/index.cjs",
"default": "./dist/browser/index.js"
}
},
"./package.json": "./package.json"
},
"main": "dist/node/index.cjs",
"module": "./dist/node/index.js",
"browser": {
"./dist/node/index.cjs": "./dist/browser/index.cjs",
"./dist/node/index.js": "./dist/browser/index.js"
},
"react-native": "./dist/browser/index.cjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"bench": "npm run build && node test/benchmark.js",
"build": "run-s clean build:node:cjs build:node:esm build:browser:cjs build:browser:esm build:types",
"build:browser:cjs": "FMT=cjs ENV=browser rollup -c --name ulidx",
"build:browser:esm": "FMT=esm ENV=browser rollup -c --name ulidx",
"build:node:cjs": "FMT=cjs ENV=node rollup -c",
"build:node:esm": "FMT=esm ENV=node rollup -c",
"build:types": "tsc -p tsconfig.dec.json --emitDeclarationOnly && find ./dist -name '*.d.ts' -exec sh -c 'cp {} $(dirname {})/$(basename -s .d.ts {}).d.cts' \\;",
"clean": "rimraf dist",
"format": "prettier --write \"{{source,test}/**/*.{js,ts},rollup.config.js}\"",
"prepare": "simple-git-hooks",
"pre:commit": "lint-staged",
"prepublishOnly": "npm run build",
"test": "npm run build && npm run test:specs && npm run test:format",
"test:format": "prettier --check \"{{source,test}/**/*.{js,ts},rollup.config.js}\"",
"test:specs": "run-s test:node:esm test:node:cjs test:browser:cjs",
"test:browser:cjs": "mochify ./test/browser-cjs/*.spec.cjs",
"test:node:cjs": "c8 --src ./dist/node/index.cjs --check-coverage --lines 60 --functions 60 --branches 65 --statements 60 mocha -t 10000 'test/node-cjs/**/*.spec.cjs'",
"test:node:esm": "c8 --src ./dist/node/index.js --check-coverage --lines 60 --functions 60 --branches 65 --statements 60 mocha -t 10000 'test/node-esm/**/*.spec.js'"
},
"files": [
"dist/**/*"
],
"lint-staged": {
"{{source,test}/**/*.{js,ts},rollup.config.js}": [
"prettier --write"
]
},
"engines": {
"node": ">=16"
},
"simple-git-hooks": {
"pre-commit": "npm run pre:commit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/perry-mitchell/ulidx.git"
},
"keywords": [
"ulid",
"uuid",
"id",
"generator",
"guid"
],
"author": "Perry Mitchell <perry@perrymitchell.net>",
"license": "MIT",
"bugs": {
"url": "https://github.com/perry-mitchell/ulidx/issues"
},
"homepage": "https://github.com/perry-mitchell/ulidx#readme",
"devDependencies": {
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^22.5.0",
"benchmark": "^2.1.4",
"c8": "^10.1.2",
"chai": "^4.5.0",
"lint-staged": "^15.2.9",
"mocha": "^10.7.3",
"mochify": "^9.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.21.0",
"simple-git-hooks": "^2.11.1",
"sinon": "^18.0.0",
"tslib": "^2.7.0",
"typescript": "^5.5.4"
},
"dependencies": {
"layerr": "^3.0.0"
}
}