mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
* Complete migration Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Fix JSON root name Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
21 lines
536 B
JavaScript
21 lines
536 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
const fs = require('fs-extra');
|
|
|
|
/**
|
|
* Copy all untyped and static assets files to lib.
|
|
*/
|
|
const srcDir = path.resolve(__dirname, 'src');
|
|
const libDir = path.resolve(__dirname, 'lib');
|
|
fs.copySync(srcDir, libDir, {
|
|
filter(filepath) {
|
|
return !/__tests__/.test(filepath) && !/\.tsx?$/.test(filepath);
|
|
},
|
|
});
|