{
	"name": "nanothreads",
	"author": "snuffydev",
	"repository": {
		"url": "https://github.com/snuffyDev/nanothreads"
	},
	"license": "ISC",
	"version": "0.4.0",
	"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"
	],
	"type": "module",
	"types": "./dist/index.d.ts",
	"browser": "./dist/browser/index.js",
	"main": "./dist/index.mjs",
	"scripts": {
		"build": "node ./build.mjs && pnpm run build:dts && pnpm test",
		"build:benchmark": "node ./build-benchmarks.mjs && pnpm run build && pnpm run build:dts",
		"build:demo": "tsc --moduleResolution node --target ESNext -m  esnext ./index.ts",
		"build:test-web": "pnpm run build && rmdir /s /q .\\browser-test\\src\\dist && xcopy /s dist .\\browser-test\\src\\dist",
		"build:dts": "tsc --moduleResolution node --target ESNext -m esnext --declaration true --emitDeclarationOnly --rootDir ./src/ --outDir dist",
		"export": "node ./scripts/barrel.mjs",
		"bundle:benchmarks": "pnpm build && node ./build-benchmarks.mjs && node ./build-benchmarks.mjs && pnpm run build:dts",
		"start": "pnpm run build && pnpm run run:esm:node-demo",
		"format": "prettier --write .",
		"test": "size-limit"
	},
	"sideEffects": false,
	"exports": {
		".": {
			"types": "./dist/index.d.ts",
			"node": {
				"import": "./dist/index.mjs",
				"require": "./dist/index.cjs"
			},
			"browser": "./dist/browser/index.js"
		},
		"./package.json": "./package.json"
	},
	"size-limit": [
		{
			"name": "Node (ESM)",
			"limit": "4 KB",
			"import": "*",
			"path": "./dist/index.mjs"
		},
		{
			"name": "Node (CJS)",
			"limit": "4.5 KB",
			"import": "*",
			"path": "./dist/index.cjs"
		},
		{
			"name": "Web (ESM)",
			"limit": "4 KB",
			"import": "*",
			"path": "./dist/browser/index.js"
		}
	],
	"publishConfig": {
		"access": "public"
	},
	"devDependencies": {
		"@size-limit/esbuild": "^12.0.0",
		"@size-limit/esbuild-why": "^12.0.0",
		"@size-limit/file": "^12.0.0",
		"@size-limit/preset-small-lib": "^12.0.0",
		"@types/node": "^25.2.3",
		"esbuild": "^0.27.3",
		"esbuild-wasm": "^0.27.3",
		"glob": "^13.0.3",
		"prettier": "^3.8.1",
		"release-it": "^19.2.4",
		"size-limit": "^12.0.0",
		"size-limit-node-esbuild": "^0.4.0",
		"ts-node": "^10.9.2",
		"tsup": "^8.5.1",
		"typedoc": "^0.28.17",
		"typescript": "^5.9.3"
	}
}
