Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(): removed plugin scan messages & initialize new version messages #7508

Merged
merged 2 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/amplify-cli/src/plugin-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ export function getAllPluginNames(pluginPlatform: PluginPlatform): Set<string> {
}

export async function scan(pluginPlatform?: PluginPlatform): Promise<PluginPlatform> {
print.info('Scanning for plugins...');
try {
const result = await scanPluginPlatform(pluginPlatform);
print.info('Plugin scan successful');
return result;
} catch (e) {
print.error('Plugin scan failed.');
renebrandel marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
3 changes: 0 additions & 3 deletions packages/amplify-cli/src/utils/post-install-initialization.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { GetPackageAssetPaths, pathManager } from 'amplify-cli-core';
import * as fs from 'fs-extra';
import * as path from 'path';
import { print } from '../context-extensions';

/**
* This function is run first thing after a new Amplify installation
* It copies some assets needed by dependency packages to the .amplify folder
*/
export const postInstallInitialization = async () => {
print.info(`Initializing new Amplify CLI version...`);
renebrandel marked this conversation as resolved.
Show resolved Hide resolved
// clean any previous libs
await fs.remove(pathManager.getAmplifyLibRoot());
await fs.ensureDir(pathManager.getAmplifyLibRoot());
Expand Down Expand Up @@ -37,7 +35,6 @@ export const postInstallInitialization = async () => {
}),
);
delete process.env.AMPLIFY_SUPPRESS_NO_PKG_LIB;
print.success('Done initializing new version.');
};

const resolvePackageRoot = (packageName: string) => {
Expand Down