fix: Allow the mode setup/creation to be async, and provide a few more values to extension/app config/mode setup. (#4016)

This commit is contained in:
Bill Wallace authored and GitHub committed 2024-06-19 09:32:00 -04:00
1 parent 01e200986c
commit 88575c6c09
55 files changed
+2618 -3421

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import { execa } from 'execa';
import { keywords } from './enums/index.js';
import { validateYarn, addExtensionToConfig, addModeToConfig } from './utils/index.js';
import { validateYarn, addExtensionToConfig, addModeToConfig } from './utils/index';
async function linkPackage(packageDir, options, addToConfig, keyword) {
const { viewerDirectory } = options;
+1 -1
View File
@@ -1,5 +1,5 @@
import fs from 'fs';
import { prettyPrint } from './utils/index.js';
import { prettyPrint } from './utils/index';
import { colors } from './enums/index.js';
const listPlugins = async configPath => {
+1 -1
View File
@@ -1,6 +1,6 @@
import axios from 'axios';
import { prettyPrint } from './utils/index.js';
import { prettyPrint } from './utils/index';
import { keywords, colors, endPoints } from './enums/index.js';
async function searchRegistry(keyword) {
+1 -1
View File
@@ -1,7 +1,7 @@
import { execa } from 'execa';
import fs from 'fs';
import path from 'path';
import { validateYarn, removeExtensionFromConfig, removeModeFromConfig } from './utils/index.js';
import { validateYarn, removeExtensionFromConfig, removeModeFromConfig } from './utils/index';
const linkPackage = async (packageName, options, removeFromConfig) => {
const { viewerDirectory } = options;