diff --git a/bin/localize-types b/bin/localize-types index 66f102e..f4e718f 100755 --- a/bin/localize-types +++ b/bin/localize-types @@ -1,14 +1,14 @@ #!/bin/sh my_typedefs="$( - grep typedef ./types.js | cut -d ' ' -f5 + grep typedef ./index.js | cut -d ' ' -f5 )" -rm -f ./local-types.js +rm -f ./types.js { echo '/**' for my_type in $my_typedefs; do - echo " * @typedef {import('./types.js').${my_type}} ${my_type}" + echo " * @typedef {import('./').${my_type}} ${my_type}" done echo ' */' -} >> ./local-types.js +} >> ./types.js