Skip to content

Commit

Permalink
chore: debug use issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Jan 15, 2023
1 parent 0ae0810 commit b0f79df
Show file tree
Hide file tree
Showing 16 changed files with 502 additions and 497 deletions.
21 changes: 21 additions & 0 deletions copyUntypedFiles.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Inspired from https://github.com/facebook/docusaurus/blob/main/admin/scripts/copyUntypedFiles.js
// As I don't need the watch part, I remove it

import fs from 'fs-extra';
import path from 'path';

const srcDir = path.join(process.cwd(), 'src');
const libDir = path.join(process.cwd(), 'lib');

// import styles from "./styles.module.css"
const ignoredPattern = /(?:__tests__|\.tsx?$)/;

async function copy() {
await fs.copy(srcDir, libDir, {
filter(testedPath) {
return !ignoredPattern.test(testedPath);
},
});
}

await copy();
Loading

0 comments on commit b0f79df

Please sign in to comment.