Skip to content

Commit

Permalink
Merge pull request #971 from ericcrosson-bitgo/fix-import-node.js-pat…
Browse files Browse the repository at this point in the history
…h-module-using-node-import-syntax

fix: import Node.js path module using node: import syntax
  • Loading branch information
ericcrosson-bitgo authored Dec 23, 2024
2 parents cd12fcd + 8eecfe7 commit 159066c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { command, run, option, string, optional, positional } from 'cmd-ts';
import * as E from 'fp-ts/Either';
import * as fs from 'fs';
import * as p from 'path';
import * as p from 'node:path';
import type { Expression } from '@swc/core';
import type { OpenAPIV3 } from 'openapi-types';

Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs/promises';
import * as p from 'path';
import * as p from 'node:path';

export async function getPackageJsonPath(
entryPoint: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/project.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs';
import * as p from 'path';
import * as p from 'node:path';
import { promisify } from 'util';
import * as E from 'fp-ts/Either';
import resolve from 'resolve';
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/resolveInit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as swc from '@swc/core';
import type { Block } from 'comment-parser';
import * as E from 'fp-ts/Either';
import { dirname } from 'path';
import { dirname } from 'node:path';

import type { Project } from './project';
import type { SourceFile } from './sourceFile';
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-generator/test/externalModule.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as E from 'fp-ts/lib/Either';
import assert from 'node:assert/strict';
import test from 'node:test';
import * as p from 'path';
import * as p from 'node:path';

import { parsePlainInitializer, Project, type Schema } from '../src';
import { KNOWN_IMPORTS } from '../src/knownImports';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../src';
import { KNOWN_IMPORTS } from '../src/knownImports';
import { findSymbolInitializer } from '../src/resolveInit';
import * as p from 'path';
import * as p from 'node:path';
import * as E from 'fp-ts/Either';

/** External library parsing and api spec generation test case
Expand Down
2 changes: 1 addition & 1 deletion packages/superagent-wrapper/src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as E from 'fp-ts/Either';
import { pipe } from 'fp-ts/pipeable';
import * as t from 'io-ts';
import * as PathReporter from 'io-ts/lib/PathReporter';
import { posix } from 'path';
import { posix } from 'node:path';
import { URL } from 'whatwg-url';

type SuccessfulResponses<Route extends h.HttpRoute> = {
Expand Down

0 comments on commit 159066c

Please sign in to comment.