@travetto/openapi 7.0.0-rc.4 → 7.0.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -99,7 +99,7 @@ export class ApiSpecConfig {
99
99
  this.persist = false;
100
100
  } else {
101
101
  this.output = path.resolve(Runtime.mainSourcePath, this.output);
102
- this.persist ??= !Runtime.production;
102
+ this.persist ??= Runtime.envType === 'development';
103
103
  }
104
104
  if (this.persist) {
105
105
  if (!/[.](json|ya?ml) $/.test(this.output)) { // Assume a folder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/openapi",
3
- "version": "7.0.0-rc.4",
3
+ "version": "7.0.0-rc.5",
4
4
  "description": "OpenAPI integration support for the Travetto framework",
5
5
  "keywords": [
6
6
  "web",
@@ -26,14 +26,14 @@
26
26
  "directory": "module/openapi"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^7.0.0-rc.3",
30
- "@travetto/schema": "^7.0.0-rc.3",
31
- "@travetto/web": "^7.0.0-rc.4",
29
+ "@travetto/config": "^7.0.0-rc.4",
30
+ "@travetto/schema": "^7.0.0-rc.4",
31
+ "@travetto/web": "^7.0.0-rc.5",
32
32
  "openapi3-ts": "^4.5.0",
33
33
  "yaml": "^2.8.1"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^7.0.0-rc.3"
36
+ "@travetto/cli": "^7.0.0-rc.4"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
package/src/config.ts CHANGED
@@ -73,7 +73,7 @@ export class ApiSpecConfig {
73
73
  this.persist = false;
74
74
  } else {
75
75
  this.output = path.resolve(Runtime.mainSourcePath, this.output);
76
- this.persist ??= !Runtime.production;
76
+ this.persist ??= Runtime.envType === 'development';
77
77
  }
78
78
  if (this.persist) {
79
79
  if (!/[.](json|ya?ml)$/.test(this.output)) { // Assume a folder