1
0
Fork 0

fix: Remove node: protocol

pull/1/head
Ambrose Chua 2021-09-10 00:22:43 +08:00
parent 4c2a24377f
commit 0e932d833a
5 changed files with 13 additions and 10 deletions

View File

@ -42,6 +42,9 @@
}, },
"xo": { "xo": {
"prettier": true, "prettier": true,
"rules": {
"unicorn/prefer-node-protocol": "off"
},
"globals": [ "globals": [
"Request", "Request",
"Response", "Response",

View File

@ -1,6 +1,6 @@
import cp from 'node:child_process'; import cp from 'child_process';
import fs from 'node:fs/promises'; import fs from 'fs/promises';
import path from 'node:path'; import path from 'path';
import getPort from 'get-port'; import getPort from 'get-port';
// @ts-expect-error: Missing types // @ts-expect-error: Missing types
import tcpPortUsed from 'tcp-port-used'; import tcpPortUsed from 'tcp-port-used';

View File

@ -1,4 +1,4 @@
import cp from 'node:child_process'; import cp from 'child_process';
// @ts-expect-error: Missing types // @ts-expect-error: Missing types
import {binary} from 'deno-prebuilt'; import {binary} from 'deno-prebuilt';

View File

@ -1,6 +1,6 @@
import process from 'node:process'; import process from 'process';
import cp from 'node:child_process'; import cp from 'child_process';
import path from 'node:path'; import path from 'path';
import {Platform, Result} from './types.js'; import {Platform, Result} from './types.js';

View File

@ -1,6 +1,6 @@
import process from 'node:process'; import process from 'process';
import net from 'node:net'; import net from 'net';
import path from 'node:path'; import path from 'path';
import Koa from 'koa'; import Koa from 'koa';
import files from 'koa-files'; import files from 'koa-files';