console/package.json
Laurin Quast 6540155fc7
feat: replace auth0 with supertokens (#303)
* add supertoken container to docker-compose file

* yeah I am sorry this one big commit and I am ashamed of it

* use logOut function

* feat: show header on 404 page

* feat: better handling for organization cookie when not authenticated

* wrap it

* check session within server side props

* add is_admin flag user migration

* simplify and annotate the config

* fix: handle status codes + fix email/password sign up with import from auth0

* no hardcoded env pls

* decode process.env

* secure update user id mapping via a key

* fix: login form

* lol we don't need to hit the API

* fix: do graphql api authorization via authorization header instead of cookie

* implement isAdmin flag

* fix: types :)

* skipit

* yo we can run this

* set env variables

* disable because it annoys the hell out of me

* use the right host

* add not about token length

* refactor: decode environment variables

* feat: store external user id from guthub/google provider in the database

* workaround supertokens omitting null values from the token

* re-enable check

* i have no time for this shit

* add missing env variable

* fix: email test; missing domain extension

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* fix: env names

* fix: link google account to the correct db record

* feat: email confirmation emails

* ?

* bump ts-node

* fix types

* omit package form the bundle

* remove it from dependencies...

* add emails apckage to dev deps

* resolve eslint issues

* remove comments

* update dev info + change env variable (no need to expose it on the frontend)

* use correct user id lol

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2022-09-06 09:38:31 +02:00

112 lines
3.7 KiB
JSON

{
"name": "graphql-hive",
"type": "module",
"private": true,
"repository": {
"type": "git",
"url": "kamilkisiela/graphql-hive"
},
"author": {
"email": "contact@the-guild.dev",
"name": "The Guild",
"url": "https://the-guild.dev"
},
"license": "MIT",
"scripts": {
"seed": "node scripts/seed-local-env.js",
"postinstall": "husky install && patch-package && node ./scripts/patch-manifests.js && node ./scripts/sync-env-files.js && node ./scripts/turborepo-cleanup.js && node ./scripts/turborepo-setup.js",
"pre-commit": "lint-staged",
"prerelease": "yarn build:libraries",
"release": "changeset publish",
"upload-sourcemaps": "./scripts/upload-sourcemaps.sh",
"test": "jest",
"lint": "eslint --cache --ignore-path .gitignore \"packages/**/*.{ts,tsx}\"",
"prettier": "prettier --cache --write --list-different .",
"lint:prettier": "prettier --cache --check .",
"setup": "yarn workspace @hive/storage run setup",
"generate": "yarn workspace @hive/storage run db:generate && yarn graphql:generate",
"graphql:generate": "graphql-codegen",
"typecheck": "yarn turbo typecheck --color",
"build": "yarn graphql:generate && yarn turbo build --color",
"build:libraries": "yarn graphql:generate && yarn turbo build --filter=./packages/libraries/* --color",
"build:web": "yarn graphql:generate && yarn turbo build --filter=./packages/web/* --color",
"build:services": "yarn graphql:generate && yarn turbo build --filter=./packages/services/* --color",
"build:local-cdn": "yarn graphql:generate && yarn turbo build-local --color",
"env:sync": "node ./scripts/sync-env-files.js",
"turbo": "env-cmd --silent turbo run"
},
"devDependencies": {
"@changesets/cli": "2.24.3",
"@changesets/changelog-github": "0.4.6",
"@graphql-codegen/add": "3.2.0",
"@graphql-codegen/cli": "2.8.0",
"@graphql-codegen/gql-tag-operations-preset": "1.5.2-alpha-8565e86c3.0",
"@graphql-codegen/graphql-modules-preset": "2.4.1",
"@graphql-codegen/typed-document-node": "2.3.1",
"@graphql-codegen/typescript": "2.7.1",
"@graphql-codegen/typescript-graphql-request": "4.5.1",
"@graphql-codegen/typescript-operations": "2.5.1",
"@graphql-codegen/typescript-resolvers": "2.7.1",
"@sentry/cli": "2.2.0",
"@swc/core": "1.2.185",
"@theguild/prettier-config": "0.0.2",
"@types/jest": "27.5.1",
"@types/lru-cache": "7.6.1",
"@types/node": "16.11.22",
"@typescript-eslint/eslint-plugin": "5.28.0",
"@typescript-eslint/parser": "5.28.0",
"bob-the-bundler": "1.7.3",
"env-cmd": "10.1.0",
"eslint": "8.18.0",
"eslint-plugin-hive": "file:./rules",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-simple-import-sort": "7.0.0",
"fs-extra": "10.1.0",
"graphql": "16.5.0",
"husky": "7.0.4",
"jest": "28.1.0",
"lint-staged": "11.2.6",
"patch-package": "6.4.7",
"prettier": "2.7.1",
"prettier-plugin-tailwindcss": "0.1.11",
"pretty-quick": "3.1.3",
"rimraf": "3.0.2",
"ts-jest": "28.0.2",
"tsup": "5.12.7",
"turbo": "1.4.2",
"typescript": "4.7.4"
},
"workspaces": {
"packages": [
"packages/services/*",
"packages/web/*",
"packages/libraries/*",
"integration-tests/"
]
},
"resolutions": {
"@types/react": "17.0.45",
"@urql/core": "2.3.6",
"graphql": "16.5.0",
"typescript": "4.7.4",
"ts-node": "10.9.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*": [
"pretty-quick --staged"
],
"**/*.{js,cjs,mjs,ts,tsx}": [
"eslint --fix"
]
},
"engines": {
"node": ">=16"
},
"packageManager": "yarn@1.22.18",
"version": "0.0.0"
}