UNPKG

ts-optchain

Version:

Optional Chaining for TypeScript

61 lines (60 loc) 1.5 kB
{ "name": "ts-optchain", "version": "0.1.8", "description": "Optional Chaining for TypeScript", "repository": { "type": "git", "url": "git+https://github.com/rimeto/ts-optchain.git" }, "main": "./dist/proxy/index.js", "types": "./index.d.ts", "files": [ "dist", "index.d.ts", "transform.js" ], "scripts": { "build": "npm run clean && tsc && find ./dist -type d -and -name '__tests__' | xargs rm -rf", "clean": "rm -rf build dist", "prepublishOnly": "npm run build", "test": "npm run test-proxy && npm run test-transform", "test-proxy": "tsc --noEmit && jest", "test-transform": "ttsc -p src/transform/__tests__ && jest src/transform/__tests__; ret=$?; rm -rf src/transform/__tests__/dist; exit $ret" }, "license": "MIT", "devDependencies": { "@types/jest": "^24.0.12", "conditional-type-checks": "^1.0.0", "jest": "^24.7.1", "ts-jest": "^24.0.2", "ttypescript": "^1.5.6", "typescript": "^3.4.5" }, "jest": { "moduleFileExtensions": [ "ts", "tsx", "js", "json" ], "rootDir": "./src", "testEnvironment": "node", "testMatch": [ "**/__tests__/**/*-test.[jt]s?(x)" ], "transform": { ".(ts|tsx)": "ts-jest" } }, "keywords": [ "existential operator", "null conditional operator", "null propagation operator", "optional chaining", "safe navigation operator", "typescript" ], "engines": { "node": ">=6" } }