File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
plugins/docusaurus-plugin-alumni Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Facebook, Inc. and its affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ const path = require ( 'path' ) ;
9+ const fs = require ( 'fs-extra' ) ;
10+
11+ /**
12+ * Copy all untyped and static assets files to lib.
13+ */
14+ const srcDir = path . resolve ( __dirname , 'src' ) ;
15+ const libDir = path . resolve ( __dirname , 'lib' ) ;
16+ fs . copySync ( srcDir , libDir , {
17+ filter ( filepath ) {
18+ return ! / _ _ t e s t s _ _ / . test ( filepath ) && ! / \. t s x ? $ / . test ( filepath ) ;
19+ } ,
20+ } ) ;
Original file line number Diff line number Diff line change 55 "main" : " lib/index.js" ,
66 "types" : " src/types.d.ts" ,
77 "scripts" : {
8- "build" : " tsc" ,
9- "watch" : " tsc --watch" ,
8+ "build" : " tsc && node copyUntypedFiles " ,
9+ "watch" : " node copyUntypedFiles && tsc --watch" ,
1010 "postinstall" : " yarn build"
1111 },
1212 "dependencies" : {
You can’t perform that action at this time.
0 commit comments