run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -55,11 +55,9 @@ export default async (cmd: Command) => {
|
||||
lockfile.replaceVersions(result.newVersions);
|
||||
await lockfile.save();
|
||||
} else {
|
||||
const [
|
||||
newVersionsForbidden,
|
||||
newVersionsAllowed,
|
||||
] = partition(result.newVersions, ({ name }) =>
|
||||
forbiddenDuplicatesFilter(name),
|
||||
const [newVersionsForbidden, newVersionsAllowed] = partition(
|
||||
result.newVersions,
|
||||
({ name }) => forbiddenDuplicatesFilter(name),
|
||||
);
|
||||
if (newVersionsForbidden.length && !fix) {
|
||||
success = false;
|
||||
|
||||
@@ -30,9 +30,9 @@ export const optimization = (
|
||||
...(!isParallelDefault(options.parallel)
|
||||
? {
|
||||
minimizer: [
|
||||
(new TerserPlugin({
|
||||
new TerserPlugin({
|
||||
parallel: options.parallel,
|
||||
}) as unknown) as WebpackPluginInstance,
|
||||
}) as unknown as WebpackPluginInstance,
|
||||
],
|
||||
}
|
||||
: {}),
|
||||
|
||||
@@ -137,9 +137,9 @@ export class Lockfile {
|
||||
}
|
||||
|
||||
// Find all versions currently in use
|
||||
const versions = Array.from(
|
||||
new Set(entries.map(e => e.version)),
|
||||
).sort((v1, v2) => semver.rcompare(v1, v2));
|
||||
const versions = Array.from(new Set(entries.map(e => e.version))).sort(
|
||||
(v1, v2) => semver.rcompare(v1, v2),
|
||||
);
|
||||
|
||||
// If we're not using at least 2 different versions we're done
|
||||
if (versions.length < 2) {
|
||||
|
||||
Vendored
+3
-4
@@ -30,9 +30,7 @@ declare module '@svgr/rollup' {
|
||||
|
||||
declare module '@rollup/plugin-yaml';
|
||||
declare module 'react-dev-utils/formatWebpackMessages' {
|
||||
export default function (
|
||||
stats: any,
|
||||
): {
|
||||
export default function (stats: any): {
|
||||
errors: string[];
|
||||
warnings: string[];
|
||||
};
|
||||
@@ -46,7 +44,8 @@ declare module 'react-dev-utils/ModuleScopePlugin' {
|
||||
import webpack = require('webpack');
|
||||
|
||||
export default class ModuleScopePlugin
|
||||
implements webpack.WebpackPluginInstance {
|
||||
implements webpack.WebpackPluginInstance
|
||||
{
|
||||
constructor(
|
||||
appSrc: string | ReadonlyArray<string>,
|
||||
allowedFiles?: ReadonlyArray<string>,
|
||||
|
||||
Reference in New Issue
Block a user