Skip to content

Commit

Permalink
fix: oas import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 12, 2023
1 parent 45d76f4 commit 66b45d6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __tests__/lib/analyzeOas.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import petstore from '@readme/oas-examples/3.0/json/petstore.json';
import { describe, it, expect } from 'vitest';
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/openapi/convert.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CommandOptions } from '../../lib/baseCommand';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

Check failure on line 2 in src/cmds/openapi/convert.ts

View workflow job for this annotation

GitHub Actions / Test Suite (14)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

Check failure on line 2 in src/cmds/openapi/convert.ts

View workflow job for this annotation

GitHub Actions / Test Suite (16)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

Check failure on line 2 in src/cmds/openapi/convert.ts

View workflow job for this annotation

GitHub Actions / Test Suite (18)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

Check failure on line 2 in src/cmds/openapi/convert.ts

View workflow job for this annotation

GitHub Actions / Test Suite (20)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

import fs from 'fs';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/openapi/inspect.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Analysis, AnalyzedFeature } from '../../lib/analyzeOas';
import type { CommandOptions } from '../../lib/baseCommand';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

Check failure on line 3 in src/cmds/openapi/inspect.ts

View workflow job for this annotation

GitHub Actions / Test Suite (14)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

Check failure on line 3 in src/cmds/openapi/inspect.ts

View workflow job for this annotation

GitHub Actions / Test Suite (16)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

Check failure on line 3 in src/cmds/openapi/inspect.ts

View workflow job for this annotation

GitHub Actions / Test Suite (18)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

Check failure on line 3 in src/cmds/openapi/inspect.ts

View workflow job for this annotation

GitHub Actions / Test Suite (20)

Cannot find module 'oas/rmoas.types' or its corresponding type declarations.

import chalk from 'chalk';
import config from 'config';
Expand Down
4 changes: 2 additions & 2 deletions src/cmds/openapi/reduce.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { CommandOptions } from '../../lib/baseCommand';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASDocument } from 'oas/rmoas.types';

import fs from 'fs';
import path from 'path';

import chalk from 'chalk';
import Oas from 'oas';
import oasReducer from 'oas/dist/lib/reducer';
import oasReducer from 'oas/lib/reducer';
import ora from 'ora';
import prompts from 'prompts';

Expand Down
6 changes: 3 additions & 3 deletions src/lib/analyzeOas.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { OASAnalysis, OASAnalysisFeature } from 'oas/dist/analyzer';
import type { OASDocument } from 'oas/dist/rmoas.types';
import type { OASAnalysis, OASAnalysisFeature } from 'oas/analyzer';
import type { OASDocument } from 'oas/rmoas.types';

import analyzer from 'oas/dist/analyzer';
import analyzer from 'oas/analyzer';

export interface AnalyzedFeature extends OASAnalysisFeature {
description: string;
Expand Down

0 comments on commit 66b45d6

Please sign in to comment.