Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
53 lines (53 loc) · 1.55 KB
/
Copy pathpackage.json
File metadata and controls
53 lines (53 loc) · 1.55 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
{
"name": "oblivious-set",
"version": "2.0.0",
"description": "Like a JavaScript Set() but with a TTL for entries",
"keywords": [
"set",
"oblivious",
"cache"
],
"license": "MIT",
"exports": {
".": {
"default": {
"types": "./dist/esm/src/index.d.ts",
"import": "./dist/esm/src/index.js",
"default": "./dist/cjs/src/index.es5.js"
}
},
"./package.json": "./package.json"
},
"main": "./dist/cjs/src/index.es5.js",
"module": "./dist/esm/src/index.js",
"engines": {
"node": ">=16"
},
"types": "./dist/esm/src/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/pubkey/oblivious-set"
},
"scripts": {
"prepublish": "npm run build",
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"transpile": "tsc -p ./ --module commonjs && echo '# transpile es5 (require) sucess!'",
"transpile:es": "tsc -p ./ --outDir ./dist/esm && echo '{ \"type\": \"module\", \"sideEffects\": false }' > dist/esm/src/package.json && echo '# transpile esm (modules) sucess!'",
"build": "rimraf -r ./dist && npm run transpile && npm run transpile:es",
"test": "npm run build && mocha ./dist/cjs/test/unit.test.js --timeout 40000 --bail"
},
"author": "pubkey",
"devDependencies": {
"@types/mocha": "8.2.2",
"@types/node": "14.17.1",
"assert": "2.0.0",
"async-test-util": "2.5.0",
"mocha": "8.4.0",
"rimraf": "3.0.2",
"ts-node": "10.9.1",
"tslint": "6.1.3",
"typescript": "5.2.2"
}
}