-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add import path alias. #247
Changes from all commits
db730c8
e00197e
7701875
5854985
ea3b5db
812a398
6c3670c
622bcdf
8c66ae2
efaf8cf
a7aad9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,9 @@ import { | |
import { Role } from '@prisma/client'; | ||
import { UserInputError } from 'apollo-server-micro'; | ||
|
||
import { prismaArgObject } from '../helpers'; | ||
import { hashPassword, appJwtForUser, comparePasswords } from '../../services/auth'; | ||
import { canAccess, isAdmin } from '../../services/permissions'; | ||
import { hashPassword, appJwtForUser, comparePasswords } from '@/services/auth'; | ||
import { canAccess, isAdmin } from '@/services/permissions'; | ||
import { prismaArgObject } from '@/graphql/helpers'; | ||
|
||
// User Type | ||
export const User = objectType({ | ||
|
@@ -257,8 +257,9 @@ export const UserCreateInput = inputObjectType({ | |
t.field('roles', { | ||
type: list('Role'), | ||
}); | ||
|
||
t.field('profile', { | ||
type: 'ProfileRelationalCreateInput' | ||
}) | ||
type: 'ProfileRelationalCreateInput', | ||
}); | ||
Comment on lines
+262
to
+263
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are changes that will end up in the created app after the initial commit (potentially from something like an I.e. you create a bison app, it sets up your repo, builds the project, etc., you |
||
}, | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
"test:e2e": "cross-env DOTENV_CONFIG_PATH=.env.test ts-node -r dotenv/config $(yarn bin)/start-server-and-test 'yarn test:server' http://localhost:3001 'yarn cypress:run'", | ||
"test:e2e:local": "cross-env CYPRESS_LOCAL=true CYPRESS_BASE_URL=http://localhost:3000 cypress open", | ||
"test:server": "next start --port 3001", | ||
"ts-node": "ts-node-dev --project tsconfig.cjs.json", | ||
"ts-node": "ts-node-dev --project tsconfig.cjs.json -r tsconfig-paths/register", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is what makes |
||
"withEnv:test": "cross-env DOTENV_CONFIG_PATH=.env.test yarn ts-node -r dotenv/config ./scripts/yarnWithEnv", | ||
"watch:all": "concurrently -n \"NEXUS,GQLCODEGEN,TYPESCRIPT\" -c \"black.bgGreen.dim,black.bgBlue.dim,white.bgMagenta.dim\" \"yarn watch:nexus\" \"yarn watch:codegen\" \"yarn watch:ts\"", | ||
"watch:codegen": "yarn codegen --watch", | ||
|
@@ -117,6 +117,7 @@ | |
"supertest": "^4.0.2", | ||
"ts-jest": "^27.0.5", | ||
"ts-node-dev": "^1.1.8", | ||
"tsconfig-paths": "^3.12.0", | ||
"typescript": "^4.4.3" | ||
}, | ||
"bison": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfecto! Thanks for adding this.