mirror of
https://github.com/developit/web-worker.git
synced 2026-01-25 14:10:20 +00:00
72 lines
1.7 KiB
JSON
72 lines
1.7 KiB
JSON
{
|
|
"name": "web-worker",
|
|
"version": "1.3.0",
|
|
"description": "Consistent Web Workers in browser and Node.",
|
|
"main": "./cjs/node.js",
|
|
"browser": "./cjs/browser.js",
|
|
"types": "./index.d.ts",
|
|
"exports": {
|
|
"types": "./index.d.ts",
|
|
"import": {
|
|
"bun": "./browser.js",
|
|
"browser": "./browser.js",
|
|
"default": "./node.js"
|
|
},
|
|
"module": {
|
|
"bun": "./browser.js",
|
|
"browser": "./browser.js",
|
|
"default": "./node.js"
|
|
},
|
|
"default": {
|
|
"bun": "./cjs/browser.js",
|
|
"browser": "./cjs/browser.js",
|
|
"default": "./cjs/node.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"cjs",
|
|
"browser.js",
|
|
"node.js",
|
|
"index.d.ts"
|
|
],
|
|
"scripts": {
|
|
"prepare": "babel node.js browser.js -d cjs",
|
|
"test": "eslint '*.js' test && node --experimental-modules ./node_modules/.bin/ava"
|
|
},
|
|
"babel": {
|
|
"plugins": [
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"babel-plugin-commonjs-lite"
|
|
]
|
|
},
|
|
"repository": "developit/web-worker",
|
|
"keywords": [
|
|
"worker",
|
|
"worker_threads",
|
|
"webworker",
|
|
"web worker",
|
|
"web-worker",
|
|
"threads"
|
|
],
|
|
"authors": [],
|
|
"license": "Apache-2.0",
|
|
"homepage": "https://github.com/developit/web-worker",
|
|
"eslintConfig": {
|
|
"extends": "developit",
|
|
"rules": {
|
|
"no-console": 0
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.21.0",
|
|
"@babel/core": "^7.21.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-modules-commonjs": "7.21",
|
|
"ava": "2.4",
|
|
"babel-plugin-commonjs-lite": "gist:3e38560d5bed35da1fd708d635e4acb3",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-developit": "^1.2.0",
|
|
"eslint-plugin-compat": "^4.2.0"
|
|
}
|
|
}
|