-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 3.3 KB
/
Copy pathpackage.json
File metadata and controls
103 lines (103 loc) · 3.3 KB
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
{
"name": "simpleflakes",
"version": "4.4.0",
"description": "Fast, lightweight, and reliable distributed 64-bit ID generation with zero dependencies for Node.js and the web.",
"main": "dist/simpleflakes.js",
"module": "dist/simpleflakes.mjs",
"types": "dist/simpleflakes.d.ts",
"exports": {
".": {
"types": "./dist/simpleflakes.d.ts",
"import": "./dist/simpleflakes.mjs",
"require": "./dist/simpleflakes.js"
}
},
"files": [
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run type-check && npm run build:js && npm run build:dts",
"build:js": "npm run build:js:cjs && npm run build:js:esm",
"build:js:cjs": "swc src/simpleflakes.ts -o dist/simpleflakes.js --source-maps --config-file .swcrc-cjs",
"build:js:esm": "swc src/simpleflakes.ts -o dist/simpleflakes.mjs --source-maps --config-file .swcrc",
"build:dts": "tsc --emitDeclarationOnly",
"build:clean": "rimraf dist",
"lint": "eslint eslint.config.js benchmark scripts src tests --ext .js,.ts",
"prebuild": "npm run build:clean",
"postbuild": "echo 'Build complete. Output in ./dist/'",
"type-check": "tsc --noEmit",
"check:commit": "npm run type-check && npm run lint && npm test",
"check:release": "npm run build && npm run lint && npm run test:unit && npm run test:package-smoke",
"test": "npm run build && npm run test:unit",
"test:unit": "tape tests/**/*.js | faucet",
"test:package-smoke": "node scripts/test-package-smoke.js",
"test:ci": "npm run test:coverage",
"test:coverage": "npm run build && nyc --instrument --source-map=false tape tests/**/*.js",
"test:coverage:report": "nyc report --reporter=html && echo '\nHTML coverage report generated in ./coverage/index.html'",
"test:coverage:ci": "npm run test:coverage && cat ./coverage/lcov.info",
"test:coverage:clean": "rimraf coverage .nyc_output",
"benchmark": "npm run build && node benchmark/run.js",
"clean": "npm run build:clean && npm run test:coverage:clean",
"prepare": "husky",
"prepublishOnly": "npm run check:release"
},
"repository": {
"type": "git",
"url": "git+https://github.com/leodutra/simpleflakes.git"
},
"keywords": [
"simpleflake",
"snowflake",
"snowflake-id",
"id-generator",
"unique-id",
"sortable-id",
"time-ordered",
"64-bit",
"bigint",
"distributed-id",
"database-id",
"uuid",
"uuidv7",
"nanoid",
"ksuid",
"webcrypto",
"zero-dependency",
"typescript",
"nodejs",
"browser"
],
"author": {
"name": "Leonardo Dutra",
"email": "leodutra.br@gmail.com",
"url": "https://github.com/leodutra"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/leodutra/simpleflakes/issues"
},
"homepage": "https://github.com/leodutra/simpleflakes#readme",
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@swc/cli": "0.8.1",
"@swc/core": "1.15.43",
"@types/node": "26.1.1",
"@typescript-eslint/eslint-plugin": "8.64.0",
"@typescript-eslint/parser": "8.64.0",
"benchmark": "2.1.4",
"eslint": "10.7.0",
"faucet": "0.0.4",
"globals": "17.7.0",
"husky": "9.1.7",
"nyc": "18.0.0",
"rimraf": "6.1.3",
"tape": "5.10.2",
"tsx": "4.23.1",
"typescript": "6.0.3"
}
}