UNPKG

synckit

Version:

Perform async work synchronously in Node.js using `worker_threads`, or `child_process` as fallback, with first-class TypeScript support.

117 lines (116 loc) 3.03 kB
{ "name": "synckit", "version": "0.6.0", "type": "module", "description": "Perform async work synchronously in Node.js using `worker_threads`, or `child_process` as fallback, with first-class TypeScript support.", "repository": "git+https://github.com/rx-ts/synckit.git", "author": "JounQin <admin@1stg.me>", "license": "MIT", "engines": { "node": ">=12.3" }, "main": "./lib/index.cjs", "module": "./lib/index.js", "exports": { "import": "./lib/index.js", "require": "./lib/index.cjs" }, "types": "lib", "files": [ "lib", "!*.tsbuildinfo" ], "keywords": [ "deasync", "make-synchronous", "sync", "sync-exec", "sync-rpc", "sync-threads", "synchronize", "synckit" ], "scripts": { "benchmark": "run-s benchmark:*", "benchmark-export": "run-s benchmark-export:*", "benchmark-export:cjs": "yarn benchmark:cjs > benchmarks/benchmark.cjs.txt", "benchmark-export:esm": "yarn benchmark:esm> benchmarks/benchmark.esm.txt", "benchmark:cjs": "node benchmarks/benchmark.cjs", "benchmark:esm": "node benchmarks/benchmark.js", "build": "run-p build:*", "build:r": "r -f cjs", "build:ts": "tsc -p src", "jest": "node --experimental-vm-modules node_modules/.bin/jest --setupFiles dotenv/config", "lint": "run-p lint:*", "lint:es": "eslint . --cache -f friendly --max-warnings 10", "lint:tsc": "tsc --noEmit", "prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0", "prerelease": "npm run build", "pretest": "yarn build", "release": "clean-publish && changeset publish", "test": "yarn jest", "typecov": "type-coverage" }, "dependencies": { "tslib": "^2.3.1" }, "devDependencies": { "@1stg/lib-config": "^4.1.2", "@changesets/changelog-github": "^0.4.1", "@changesets/cli": "^2.17.0", "@types/jest": "^27.0.2", "@types/node": "^16.11.0", "@types/uuid": "^8.3.1", "clean-publish": "^3.4.1", "deasync": "^0.1.23", "sync-threads": "^1.0.1", "ts-expect": "^1.3.0", "ts-jest": "^27.0.6", "ts-node": "^10.3.0", "type-coverage": "^2.18.2", "typescript": "^4.4.4" }, "resolutions": { "prettier": "^2.4.1", "tslib": "^2.3.1" }, "commitlint": { "extends": "@1stg" }, "jest": { "preset": "ts-jest", "testEnvironment": "node", "collectCoverage": true, "extensionsToTreatAsEsm": [ ".ts" ], "moduleNameMapper": { "^(\\.{1,2}/.*)\\.js$": "$1", "^synckit$": "<rootDir>/src" }, "globals": { "ts-jest": { "useESM": true, "tsconfig": { "importHelpers": false } } } }, "prettier": "@1stg/prettier-config", "renovate": { "extends": [ "@1stg" ] }, "typeCoverage": { "atLeast": 99.46, "cache": true, "detail": true, "ignoreAsAssertion": true, "ignoreNonNullAssertion": true, "showRelativePath": true, "strict": true, "update": true } }