-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
96 lines (96 loc) · 2.34 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
{
"name": "nanothreads",
"author": "snuffydev",
"repository": {
"url": "https://github.com/snuffyDev/nanothreads"
},
"license": "ISC",
"version": "0.3.9",
"source": "./src/index.ts",
"description": "A tiny threading library, made for browsers and Node.",
"keywords": [
"threads",
"worker",
"concurrency",
"async",
"thread pool",
"worker-pool",
"workers",
"pool",
"threadpool",
"thread",
"multithreading",
"parallel",
"threading",
"browser"
],
"files": [
"dist",
"package.json"
],
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"browser": "./dist/browser/index.js",
"scripts": {
"build": "rm -rf ./dist && node ./build.mjs && pnpm run build:dts",
"build:benchmark": "node ./build.mjs && pnpm run build:dts",
"build:demo": "tsc --moduleResolution node --target ESNext -m esnext ./index.ts",
"build:dts": "tsc --moduleResolution node --target ESNext -m esnext --declaration true --emitDeclarationOnly --rootDir ./src/ --outDir dist",
"export": "node ./scripts/barrel.mjs",
"run:esm:node-demo": "node --loader=ts-node/esm --experimental-specifier-resolution=node ./index.mts",
"run:cjs:node-demo": "node ./index.cjs.js",
"start": "pnpm run build && pnpm run run:esm:node-demo",
"format": "prettier --write .",
"test": "size-limit"
},
"sideEffects": false,
"exports": {
".": {
"node": {
"import": "./dist/index.cjs",
"require": "./dist/index.cjs"
},
"browser": "./dist/browser/index.js",
"import": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"size-limit": [
{
"name": "Node (ESM)",
"limit": "3 KB",
"import": "*",
"path": "./dist/index.mjs"
},
{
"name": "Node (CJS)",
"limit": "3.5 KB",
"import": "*",
"path": "./dist/index.cjs"
},
{
"name": "Web (ESM)",
"limit": "3 KB",
"import": "*",
"path": "./dist/browser/index.js"
}
],
"devDependencies": {
"@size-limit/esbuild": "^8.2.4",
"@size-limit/esbuild-why": "^8.2.4",
"@size-limit/file": "^8.2.4",
"@size-limit/preset-small-lib": "^8.2.4",
"@types/node": "^18.15.5",
"esbuild": "^0.17.12",
"esbuild-wasm": "^0.17.12",
"glob": "^9.3.1",
"prettier": "^2.8.6",
"size-limit": "^8.2.4",
"size-limit-node-esbuild": "^0.2.0",
"ts-node": "^10.9.1",
"tsup": "^6.7.0",
"typedoc": "^0.23.28",
"typescript": "^5.0.2"
}
}