diff --git a/package.json b/package.json index 274ec5d..20545e5 100644 --- a/package.json +++ b/package.json @@ -1,36 +1,78 @@ { - "name": "test-project", - "version": "0.0.7", + "name": "stytch-test", + "version": "8.1.0", + "types": "./types/lib/index.d.ts", + "main": "./dist/index.js", + "exports": { + "require": "./dist/index.js", + "import": "./module.mjs", + "types": "./types/lib/index.d.ts" + }, + "files": [ + "dist/**/*", + "types/**/*", + "module.mjs" + ], + "repository": { + "type": "git", + "url": "git://github.com/stytchauth/stytch-node.git" + }, + "engines": { + "node": ">= 16.0.0" + }, "scripts": { - "start": "node index.js", - "test": "echo \"Error: no test specified\" && exit 1" + "build": "rm -rf dist types && babel lib --out-dir dist --extensions '.ts' && tsc --declaration --outDir types --emitDeclarationOnly", + "format": "prettier --write .", + "check-format": "prettier --check .", + "lint": "eslint lib", + "test": "jest", + "test-packages": "./test-packages/test.sh" + }, + "author": "Stytch", + "bugs": { + "url": "git://github.com/stytchauth/stytch-node/issues" + }, + "license": "MIT", + "devDependencies": { + "@babel/cli": "^7.15.7", + "@babel/core": "^7.15.5", + "@babel/preset-env": "^7.15.6", + "@babel/preset-typescript": "^7.15.0", + "@types/jest": "^27.0.2", + "@types/node": "^15.14.9", + "@types/node-fetch": "^2.6.1", + "@typescript-eslint/eslint-plugin": "^4.33.0", + "@typescript-eslint/parser": "^4.33.0", + "eslint": "^7.32.0", + "jest": "^27.2.4", + "prettier": "2.4.1", + "ts-jest": "^27.0.5", + "typescript": "^4.4.3" }, "dependencies": { - "@isaacs/import-jsx": "^4.0.1", - "@types/react": "^17.0.52", - "chokidar": "^3.3.0", - "findit": "^2.0.0", - "foreground-child": "^2.0.0", - "fs-exists-cached": "^1.0.0", - "glob": "^7.2.3", - "ink": "^3.2.0", - "isexe": "^2.0.0", - "istanbul-lib-processinfo": "^2.0.3", - "jackspeak": "^1.4.2", - "libtap": "^1.4.0", - "minipass": "^3.3.4", - "mkdirp": "^1.0.4", - "nyc": "^15.1.0", - "opener": "^1.5.1", - "react": "^17.0.2", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.6", - "source-map-support": "^0.5.16", - "tap-mocha-reporter": "^5.0.3", - "tap-parser": "^11.0.2", - "tap-yaml": "^1.0.2", - "tcompare": "^5.0.7", - "treport": "3.0.4", - "core-js": "3.31.1" + "isomorphic-unfetch": "^3.1.0", + "jose": "^4.13.2" + }, + "overrides": { + "isomorphic-unfetch": { + "node-fetch": "2.6.9" + } + }, + "eslintConfig": { + "extends": "airbnb", + "env": { + "commonjs": true, + "node": true, + "mocha": true + }, + "rules": { + "indent": [ + "error", + 4 + ], + "no-underscore-dangle": 0, + "strict": 0, + "prefer-rest-params": 0 + } } }