mirror of
https://github.com/facebook/lexical.git
synced 2025-05-17 06:59:17 +08:00
22 lines
563 B
JavaScript
22 lines
563 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const fs = require('fs-extra');
|
|
const path = require('node:path');
|
|
const {packagesManager} = require('./shared/packagesManager');
|
|
|
|
fs.removeSync(path.resolve(`./npm`));
|
|
fs.removeSync(path.resolve(`./.ts-temp`));
|
|
packagesManager
|
|
.getPublicPackages()
|
|
.forEach((pkg) =>
|
|
['dist', 'npm'].forEach((subdir) => fs.removeSync(pkg.resolve(subdir))),
|
|
);
|