kratam
08/05/2018, 3:59 PMnpm run build
, the *.graphql
files are not copied to the dist
folder.
question 1) what do I have to add to tsconfig.json
in order to copy them?
question 2) typeDefs: './src/schema.graphql'
doesn't work even if I remove src/
from the path. If I add the graphql-import
package I can import the schema but only using an absolute path, const typeDefs = importSchema('schema.graphql')
(or './schema.graphql'
) doesn't work - what am I doing wrong?Ben
08/05/2018, 4:17 PMimportSchema(path.join(__dirname, `schema.graphql`)