@travetto/openapi 5.0.0-rc.0 → 5.0.0-rc.1

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
@@ -29,8 +29,7 @@ import path from 'node:path';
29
29
  import type { ServerObject, ContactObject, LicenseObject } from 'openapi3-ts/oas31';
30
30
 
31
31
  import { Config } from '@travetto/config';
32
- import { RuntimeIndex, RuntimeContext } from '@travetto/manifest';
33
- import { Env } from '@travetto/base';
32
+ import { Env, RuntimeContext } from '@travetto/base';
34
33
  import { Required } from '@travetto/schema';
35
34
 
36
35
  /**
@@ -99,7 +98,7 @@ export class ApiSpecConfig {
99
98
  if (!this.output || this.output === '-') {
100
99
  this.persist = false;
101
100
  } else {
102
- this.output = path.resolve(RuntimeIndex.mainModule.sourcePath, this.output);
101
+ this.output = path.resolve(RuntimeContext.mainSourcePath, this.output);
103
102
  this.persist ??= Env.dynamic;
104
103
  }
105
104
  if (this.persist) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/openapi",
3
- "version": "5.0.0-rc.0",
3
+ "version": "5.0.0-rc.1",
4
4
  "description": "OpenAPI integration support for the Travetto framework",
5
5
  "keywords": [
6
6
  "rest",
@@ -26,14 +26,14 @@
26
26
  "directory": "module/openapi"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^5.0.0-rc.0",
30
- "@travetto/rest": "^5.0.0-rc.0",
29
+ "@travetto/config": "^5.0.0-rc.1",
30
+ "@travetto/rest": "^5.0.0-rc.1",
31
31
  "@travetto/schema": "^5.0.0-rc.0",
32
32
  "yaml": "^2.4.5",
33
33
  "openapi3-ts": "^4.3.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^5.0.0-rc.0",
36
+ "@travetto/cli": "^5.0.0-rc.1",
37
37
  "@travetto/command": "^5.0.0-rc.0"
38
38
  },
39
39
  "peerDependenciesMeta": {
package/src/config.ts CHANGED
@@ -3,8 +3,7 @@ import path from 'node:path';
3
3
  import type { ServerObject, ContactObject, LicenseObject } from 'openapi3-ts/oas31';
4
4
 
5
5
  import { Config } from '@travetto/config';
6
- import { RuntimeIndex, RuntimeContext } from '@travetto/manifest';
7
- import { Env } from '@travetto/base';
6
+ import { Env, RuntimeContext } from '@travetto/base';
8
7
  import { Required } from '@travetto/schema';
9
8
 
10
9
  /**
@@ -73,7 +72,7 @@ export class ApiSpecConfig {
73
72
  if (!this.output || this.output === '-') {
74
73
  this.persist = false;
75
74
  } else {
76
- this.output = path.resolve(RuntimeIndex.mainModule.sourcePath, this.output);
75
+ this.output = path.resolve(RuntimeContext.mainSourcePath, this.output);
77
76
  this.persist ??= Env.dynamic;
78
77
  }
79
78
  if (this.persist) {
@@ -2,8 +2,7 @@ import fs from 'node:fs/promises';
2
2
  import { spawn } from 'node:child_process';
3
3
  import path from 'node:path';
4
4
 
5
- import { ExecUtil } from '@travetto/base';
6
- import { RuntimeContext } from '@travetto/manifest';
5
+ import { ExecUtil, RuntimeContext } from '@travetto/base';
7
6
  import { cliTpl } from '@travetto/cli';
8
7
 
9
8
  /**