mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-10-30 22:33:11 +08:00
Update version to 1.44.6, add Node.js import protocol setting, and clean up import statements across multiple files
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import fs from 'node:fs';
|
||||
// import path from 'node:path';
|
||||
import fs from 'fs';
|
||||
// import path from 'path';
|
||||
import { credentialFile, tempDir } from './constants';
|
||||
import { t } from './i18n';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { t } from './i18n';
|
||||
|
||||
const lockFiles = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import path from 'node:path';
|
||||
import path from 'path';
|
||||
|
||||
const scriptName = path.basename(process.argv[1]) as 'cresc' | 'pushy';
|
||||
export const IS_CRESC = scriptName === 'cresc';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import git from 'isomorphic-git';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
export interface CommitInfo {
|
||||
hash: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from 'fs-extra';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import os from 'os';
|
||||
import path from 'path';
|
||||
import pkg from '../../package.json';
|
||||
import AppInfoParser from './app-info-parser';
|
||||
import semverSatisfies from 'semver/functions/satisfies';
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
underline,
|
||||
yellow,
|
||||
} from '@colors/colors/safe';
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import { dirname } from 'node:path';
|
||||
import { existsSync, readFileSync } from 'fs';
|
||||
import { dirname } from 'path';
|
||||
import latestVersion, {
|
||||
type Package,
|
||||
type PackageJson,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
||||
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
||||
import type {
|
||||
RequestOptions as HttpRequestOptions,
|
||||
Agent,
|
||||
IncomingMessage,
|
||||
} from 'node:http';
|
||||
import type { RequestOptions as HttpsRequestOptions } from 'node:https';
|
||||
import { join, dirname, resolve as pathResolve, parse } from 'node:path';
|
||||
} from 'http';
|
||||
import type { RequestOptions as HttpsRequestOptions } from 'https';
|
||||
import { join, dirname, resolve as pathResolve, parse } from 'path';
|
||||
import { npm, yarn } from 'global-dirs';
|
||||
import { homedir } from 'node:os';
|
||||
import { URL } from 'node:url';
|
||||
import { homedir } from 'os';
|
||||
import { URL } from 'url';
|
||||
|
||||
import getRegistryUrl from 'registry-auth-token/registry-url';
|
||||
import registryAuthToken from 'registry-auth-token';
|
||||
|
||||
Reference in New Issue
Block a user