@portive/auth
Version:
A library to help generate auth tokens for use with Portive's cloud services for open source components
73 lines (72 loc) • 3.04 kB
JSON
{
"name": "@portive/auth",
"version": "9.0.0",
"description": "A library to help generate auth tokens for use with Portive's cloud services for open source components",
"keywords": [
"portive",
"auth token"
],
"license": "MIT",
"author": "Sunny Hirai <thesunny@gmail.com>",
"files": [
".dist/**/*"
],
"main": ".dist/cjs/src/index.js",
"module": ".dist/mjs/src/index.js",
"types": ".dist/cjs/src/index.d.ts",
"devDependencies": {
"@types/jest": "^27",
"@types/node": "^17.0.41",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"concurrently": "^7.2",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-no-secrets": "^0.8.9",
"eslint-plugin-react": "^7.27.1",
"jest": "^27",
"prettier": "^2",
"ts-jest": "^27",
"ts-node": "^10.8.1",
"tsc": "^2.0.4",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.7.3"
},
"dependencies": {
"@portive/api-types": "^9.0.0",
"@portive/jwt-utils": "^1.0.7",
"@types/jsonwebtoken": "^8.5.8",
"jsonwebtoken": "^8.5.1"
},
"scripts": {
"-- preset": "# Run preset from @thesunny/presets",
"preset": "ts-node --project node_modules/@thesunny/presets/tsconfig.ts-node.json node_modules/@thesunny/presets/bin/index.ts",
"--- test": "#",
"test:once": "yarn test:clearcache && jest --config=jest.config.js",
"test:watch": "jest --watch --config=jest.fast.config.js",
"test:watch:types": "yarn test:clearcache && jest --watch --config=jest.config.js",
"test:clearcache": "jest --clearCache",
"-- fix": "# fix syntax",
"fix:prettier": "yarn lint:prettier --write",
"fix:eslint": "yarn lint:eslint --fix",
"-- lint": "# lint syntax",
"lint": "concurrently 'yarn lint:prettier' 'yarn lint:eslint' 'yarn lint:tsc'",
"lint:prettier": "prettier --check \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
"lint:eslint": "eslint .",
"lint:tsc": "tsc --build ./ --force",
"--- npm": "# npm package scripts",
"build:npm:once": "rm -rf ./.dist/ && yarn test:once && tsc -p tsconfig.ts-build.json && echo 'Finished Building'",
"build:npm:watch": "rm -rf ./.dist/ && tsc -p tsconfig.ts-build.json --watch",
"--- build npm": "# build npm",
"build:once": "yarn build:clear && yarn test:once && concurrently 'yarn build:cjs' 'yarn build:mjs' && echo 'Finished Building'",
"build:watch": "build:clear && tsc -p tsconfig.ts-build.json --watch",
"build:clear": "rm -rf ./.dist/",
"build:cjs": "tsc -p tsconfig.build-cjs.json",
"build:mjs": "tsc -p tsconfig.build-mjs.json",
"-- publish npm": "# publish npm package",
"publish:npm": "yarn build:once && yarn publish || yarn publish:first",
"publish:npm:patch": "yarn build:once && yarn version --patch && yarn publish --non-interactive || yarn publish:first",
"publish:first": "echo 'IMPORTANT INSTRUCTIONS: This is first publish so please use:\n\n\"npm publish --access=public\"'",
"-- end": "# end"
}
}