Skip to content

Commit 159066c

Browse files
Merge pull request #971 from ericcrosson-bitgo/fix-import-node.js-path-module-using-node-import-syntax
fix: import Node.js path module using node: import syntax
2 parents cd12fcd + 8eecfe7 commit 159066c

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

packages/openapi-generator/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { command, run, option, string, optional, positional } from 'cmd-ts';
44
import * as E from 'fp-ts/Either';
55
import * as fs from 'fs';
6-
import * as p from 'path';
6+
import * as p from 'node:path';
77
import type { Expression } from '@swc/core';
88
import type { OpenAPIV3 } from 'openapi-types';
99

packages/openapi-generator/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as fs from 'fs/promises';
2-
import * as p from 'path';
2+
import * as p from 'node:path';
33

44
export async function getPackageJsonPath(
55
entryPoint: string,

packages/openapi-generator/src/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as fs from 'fs';
2-
import * as p from 'path';
2+
import * as p from 'node:path';
33
import { promisify } from 'util';
44
import * as E from 'fp-ts/Either';
55
import resolve from 'resolve';

packages/openapi-generator/src/resolveInit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type * as swc from '@swc/core';
22
import type { Block } from 'comment-parser';
33
import * as E from 'fp-ts/Either';
4-
import { dirname } from 'path';
4+
import { dirname } from 'node:path';
55

66
import type { Project } from './project';
77
import type { SourceFile } from './sourceFile';

packages/openapi-generator/test/externalModule.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as E from 'fp-ts/lib/Either';
22
import assert from 'node:assert/strict';
33
import test from 'node:test';
4-
import * as p from 'path';
4+
import * as p from 'node:path';
55

66
import { parsePlainInitializer, Project, type Schema } from '../src';
77
import { KNOWN_IMPORTS } from '../src/knownImports';

packages/openapi-generator/test/externalModuleApiSpec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from '../src';
1313
import { KNOWN_IMPORTS } from '../src/knownImports';
1414
import { findSymbolInitializer } from '../src/resolveInit';
15-
import * as p from 'path';
15+
import * as p from 'node:path';
1616
import * as E from 'fp-ts/Either';
1717

1818
/** External library parsing and api spec generation test case

packages/superagent-wrapper/src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as E from 'fp-ts/Either';
33
import { pipe } from 'fp-ts/pipeable';
44
import * as t from 'io-ts';
55
import * as PathReporter from 'io-ts/lib/PathReporter';
6-
import { posix } from 'path';
6+
import { posix } from 'node:path';
77
import { URL } from 'whatwg-url';
88

99
type SuccessfulResponses<Route extends h.HttpRoute> = {

0 commit comments

Comments
 (0)