Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use node protocol for node builtin module #1319

Merged
merged 1 commit into from
Mar 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/tooling/openmrs/src/cli.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

import yargs from 'yargs';
import { fork } from 'child_process';
import { resolve } from 'path';
import { resolve } from 'node:path';
import { getImportmapAndRoutes, mergeImportmapAndRoutes, proxyImportmapAndRoutes, runProject, trimEnd } from './utils';

import type * as commands from './commands';
8 changes: 4 additions & 4 deletions packages/tooling/openmrs/src/commands/assemble.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mkdir, readFile, writeFile } from 'fs/promises';
import { existsSync } from 'fs';
import { resolve, dirname, basename } from 'path';
import { Readable } from 'stream';
import { mkdir, readFile, writeFile } from 'node:fs/promises';
import { existsSync } from 'node:fs';
import { resolve, dirname, basename } from 'node:path';
import { Readable } from 'node:stream';
import { prompt, type Question } from 'inquirer';
import rimraf from 'rimraf';
import axios from 'axios';
2 changes: 1 addition & 1 deletion packages/tooling/openmrs/src/commands/build.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { copyFileSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
import { checkImportmapJson, checkRoutesJson, getImportMap, getRoutes, loadWebpackConfig, logInfo } from '../utils';
import { basename, join, parse, resolve } from 'path';
import { basename, join, parse, resolve } from 'node:path';
import type { webpack } from 'webpack';

type WebpackExport = typeof webpack;
2 changes: 1 addition & 1 deletion packages/tooling/openmrs/src/commands/start.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import express from 'express';
import { createProxyMiddleware } from 'http-proxy-middleware';
import { resolve } from 'path';
import { resolve } from 'node:path';
import { logInfo, logWarn } from '../utils';

/* eslint-disable no-console */
Loading
Oops, something went wrong.