Skip to content

Commit

Permalink
refactor: use "node:" specifier prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
AviVahl committed Dec 29, 2023
1 parent 29bac93 commit 46a5646
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment */
import fs from 'fs';
import path from 'path';
import { pathToFileURL, URL } from 'url';
import { Command } from 'commander';
import { findUpSync } from 'find-up';
import { globSync } from 'glob';
import type webpack from 'webpack';
import fs from 'node:fs';
import path from 'node:path';
import { pathToFileURL, URL } from 'node:url';
import type playwright from 'playwright-core';
import { findUpSync } from 'find-up';
import type webpack from 'webpack';
import { runTests } from './run-tests.js';

const packageJsonPath = new URL('../package.json', import.meta.url);
Expand Down
8 changes: 4 additions & 4 deletions src/run-tests.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { createRequire } from 'module';
import path from 'path';
import { safeListeningHttpServer } from 'create-listening-server';
import express from 'express';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { createRequire } from 'node:module';
import path from 'node:path';
import playwright from 'playwright-core';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { safeListeningHttpServer } from 'create-listening-server';
import { hookPageConsole } from './hook-page-console.js';

const require = createRequire(import.meta.url);
Expand Down
6 changes: 3 additions & 3 deletions test/mocha-play.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fileURLToPath, URL } from 'url';
import { resolve } from 'path';
import { spawnSync } from 'child_process';
import { expect } from 'chai';
import { spawnSync } from 'node:child_process';
import { resolve } from 'node:path';
import { fileURLToPath, URL } from 'node:url';

const fixturesRoot = fileURLToPath(new URL('../../test/fixtures', import.meta.url));
const cliEntryPath = fileURLToPath(new URL('../../bin/mocha-play.js', import.meta.url));
Expand Down

0 comments on commit 46a5646

Please sign in to comment.