sharedthread 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "sharedthread",
3
+ "version": "1.0.0",
4
+ "description": "A high-performance asynchronous multithreading library that wraps Node.js Worker Threads and SharedArrayBuffer for efficient, zero-copy variable sharing.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "typecheck": "tsc",
26
+ "build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
27
+ "watch": "tsup src/index.ts --format cjs,esm --watch",
28
+ "test": "vitest run",
29
+ "test/watch": "vitest"
30
+ },
31
+ "keywords": [],
32
+ "author": "Yujun Wang <paulwangto2018@gmail.com>",
33
+ "license": "MIT",
34
+ "devDependencies": {
35
+ "@types/node": "^25.9.1",
36
+ "tsup": "^8.0.0",
37
+ "tsx": "^4.22.4",
38
+ "typescript": "^5.0.0",
39
+ "vitest": "^4.1.8"
40
+ }
41
+ }