mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(ci): upgrade deps (#1868)
This commit is contained in:
@@ -22,7 +22,7 @@ export function readConfig(): CliConfig {
|
||||
function writeConfig(config: CliConfig): void {
|
||||
const dir = dirname(CONFIG_FILE);
|
||||
mkdirSync(dir, { recursive: true });
|
||||
writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2) + '\n', 'utf-8');
|
||||
writeFileSync(CONFIG_FILE, `${JSON.stringify(config, null, 2)}\n`, 'utf-8');
|
||||
}
|
||||
|
||||
const VALID_CONFIG: Record<keyof CliConfig, readonly string[]> = {
|
||||
|
||||
@@ -22,7 +22,7 @@ export async function promptFramework(): Promise<Framework> {
|
||||
],
|
||||
});
|
||||
if (p.isCancel(value)) process.exit(0);
|
||||
p.note('💡 Tip: run `npx @videojs/cli config set framework ' + value + '` to save this preference');
|
||||
p.note(`💡 Tip: run \`npx @videojs/cli config set framework ${value}\` to save this preference`);
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { tmpdir } from 'node:os';
|
||||
import { join } from 'node:path';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
const testDir = join(tmpdir(), 'videojs-cli-test-' + Date.now());
|
||||
const testDir = join(tmpdir(), `videojs-cli-test-${Date.now()}`);
|
||||
|
||||
vi.mock('node:os', async () => {
|
||||
const actual = await vi.importActual<typeof import('node:os')>('node:os');
|
||||
|
||||
Reference in New Issue
Block a user