Comparing version 0.12.0-beta.10 to 0.12.0-beta.11
# Changelog | ||
### 0.12.0 (next) | ||
#### beta.10 | ||
- feat(config): env var for should-generate-artifacts (#244) | ||
You can now set the `shouldGenerateArtifacts` config option by env var | ||
`NEXUS_SHOULD_GENERATE_ARTIFACTS=true|false`. | ||
- fix(typegen): delete prev file before writing next (#252) | ||
Before, sometimes, you would have to open the typegen file to make VSCode pick | ||
up its changed version. This change should reduce/remove the need for this | ||
workaround. | ||
* feat: by default typegen as an @types package (#230) | ||
BREAKING CHANGE | ||
You should not have to configure typegen manually anymore. We | ||
generate by default into `node_modules/@types/nexus-typegen` which TypeScript | ||
will automatically pick up. If you use the `types` `tsc` compiler option | ||
however, make sure to include `nexus-typegen`. | ||
This is a breaking change because typegen is enabled even when config | ||
`outputs` have not been configured (before, they were required). The | ||
heuristics of `shouldGenerateArtifacts` remain unchanged. | ||
### 0.11.7 | ||
@@ -4,0 +32,0 @@ |
@@ -48,3 +48,3 @@ "use strict"; | ||
var defaultSchemaPath = path.join(process.cwd(), "schema.graphql"); | ||
var defaultTypesPath = path.join(__dirname, "../node_modules/@types/nexus-typegen/index.d.ts"); | ||
var defaultTypesPath = path.join(__dirname, "../../node_modules/@types/nexus-typegen/index.d.ts"); | ||
var defaults = { | ||
@@ -51,0 +51,0 @@ outputs: { |
{ | ||
"name": "nexus", | ||
"version": "0.12.0-beta.10", | ||
"version": "0.12.0-beta.11", | ||
"main": "dist", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -306,3 +306,3 @@ import * as path from "path"; | ||
__dirname, | ||
"../node_modules/@types/nexus-typegen/index.d.ts" | ||
"../../node_modules/@types/nexus-typegen/index.d.ts" | ||
); | ||
@@ -309,0 +309,0 @@ const defaults = { |
Sorry, the diff of this file is not supported yet
687920