Commit cc638e81 by Ryan McKinley Committed by GitHub

Toolkit: don't clean dist folder before build (#22521)

parent 2483efb8
......@@ -109,7 +109,6 @@ export const lintPlugin = useSpinner<Fixable>('Linting', async ({ fix } = {}) =>
});
export const pluginBuildRunner: TaskRunner<PluginBuildOptions> = async ({ coverage }) => {
await clean();
await prepare();
await lintPlugin({ fix: false });
await testPlugin({ updateSnapshot: false, coverage, watch: false });
......
......@@ -25,6 +25,9 @@ import { runEndToEndTests } from '../../plugins/e2e/launcher';
import { getEndToEndSettings } from '../../plugins/index';
import { manifestTask } from './manifest';
import { execTask } from '../utils/execTask';
import rimrafCallback from 'rimraf';
import { promisify } from 'util';
const rimraf = promisify(rimrafCallback);
export interface PluginCIOptions {
backend?: boolean;
......@@ -46,7 +49,9 @@ export interface PluginCIOptions {
const buildPluginRunner: TaskRunner<PluginCIOptions> = async ({ backend }) => {
const start = Date.now();
const workDir = getJobFolder();
await execa('rimraf', [workDir]);
await rimraf(`${process.cwd()}/dist`);
await rimraf(workDir);
fs.mkdirSync(workDir);
if (backend) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment