This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-42
lines changed Expand file tree Collapse file tree 1 file changed +4
-42
lines changed Original file line number Diff line number Diff line change @@ -30,53 +30,15 @@ function log() {
3030
3131TYPESCRIPT_TMP=.typescript-tmp
3232TYPESCRIPT_PKGDIR=$TYPESCRIPT_TMP /packages
33- declare -a TYPESCRIPT_PKGS=(
34- " mdc-animation"
35- " mdc-base"
36- " mdc-card"
37- " mdc-checkbox"
38- " mdc-chips"
39- " mdc-dialog"
40- " mdc-dom"
41- " mdc-drawer"
42- " mdc-elevation"
43- " mdc-fab"
44- " mdc-floating-label"
45- " mdc-form-field"
46- " mdc-icon-button"
47- " mdc-icon-toggle"
48- " mdc-line-ripple"
49- " mdc-list"
50- " mdc-menu"
51- " mdc-menu-surface"
52- " mdc-notched-outline"
53- " mdc-radio"
54- " mdc-ripple"
55- " mdc-rtl"
56- " mdc-selection-control"
57- " mdc-shape"
58- " mdc-slider"
59- " mdc-switch"
60- " mdc-tab"
61- " mdc-tab-bar"
62- " mdc-tab-indicator"
63- " mdc-tab-scroller"
64- " mdc-textfield"
65- " mdc-theme"
66- " mdc-typography"
67- )
68-
69- if [ -z " $TYPESCRIPT_PKGS " ]; then
70- echo " No typescript packages to rewrite!"
71- exit 0
72- fi
7333
7434log " Prepping whitelisted packages for JS rewrite"
7535
7636rm -fr $TYPESCRIPT_TMP /**
7737mkdir -p $TYPESCRIPT_PKGDIR
78- for pkg in " ${TYPESCRIPT_PKGS[@]} " ; do
79- cp -r " packages/$pkg " $TYPESCRIPT_PKGDIR
38+ for pkg in $( find ./packages -maxdepth 1 -type d) ; do
39+ if [[ $pkg == * " mdc-" * ]]; then
40+ cp -r $pkg $TYPESCRIPT_PKGDIR
41+ fi
8042done
8143rm -fr $TYPESCRIPT_PKGDIR /** /{node_modules,dist}
8244
You can’t perform that action at this time.
0 commit comments