1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-30 22:33:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

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:
sunnylqm
2025-05-14 16:08:27 +08:00
parent 59c5be2719
commit ebfb9dd4b9
13 changed files with 52 additions and 34 deletions

View File

@@ -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';

View File

@@ -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 = [

View File

@@ -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';

View File

@@ -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;

View File

@@ -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';

View File

@@ -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,

View File

@@ -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';