-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
84 lines (84 loc) · 2.15 KB
/
Copy pathpackage.json
File metadata and controls
84 lines (84 loc) · 2.15 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
{
"name": "rollout-bucket",
"version": "1.0.1",
"description": "Deterministic percentage-based bucketing for feature flags and A/B tests",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run clean && tsc && tsc -p tsconfig.cjs.json && npm run build:package-json",
"build:package-json": "echo '{\"type\":\"module\"}' > dist/esm/package.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"clean": "rm -rf dist",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"lint": "eslint .",
"format": "prettier --write .",
"prepare": "husky",
"prepublishOnly": "npm run lint && npm test && npm run build"
},
"keywords": [
"feature-flags",
"feature-toggles",
"ab-testing",
"rollout",
"bucketing",
"experimentation",
"canary"
],
"author": "1mb-dev",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/1mb-dev/rollout-bucket.git"
},
"bugs": {
"url": "https://github.com/1mb-dev/rollout-bucket/issues"
},
"homepage": "https://github.com/1mb-dev/rollout-bucket#readme",
"engines": {
"node": ">=18.0.0"
},
"type": "module",
"dependencies": {
"murmur-hash": "^2.0.0"
},
"devDependencies": {
"typescript": "^5.9.3",
"@types/node": "^25.2.3",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"@vitest/coverage-v8": "^4.0.12",
"@vitest/ui": "^4.0.12",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.6.2",
"vitest": "^4.0.12"
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix",
"prettier --write"
]
}
}