Skip to content

Instantly share code, notes, and snippets.

@chetbox
Created July 13, 2020 10:34
Show Gist options
  • Save chetbox/4be1b3e6a64a60b438a554d2c885e807 to your computer and use it in GitHub Desktop.
Save chetbox/4be1b3e6a64a60b438a554d2c885e807 to your computer and use it in GitHub Desktop.
#!/bin/bash
function compile {
echo "$1" > tmp.ts
node_modules/.bin/tsc --noEmit --diagnostics tmp.ts
echo ""
}
echo "Empty file"
compile ""
(cat package.json | jq -r '.dependencies + .devDependencies | keys | .[]') | while read module ; do
echo "$module"
compile "import * as _ from '$module'"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment