Skip to content

Releases: saurabhdaware/typescript-run

v0.1.0 - Forward parent parameters

30 Aug 08:14
Compare
Choose a tag to compare
  • First minor release (should be usable now in small applications or for testing out typescript)
  • Forward parent arguments from cli

For this command-

typescript-run example.ts randomstring anotherrandomstring

process.argv will contain following output

[
  '/Users/saurabhdaware/.nvm/versions/node/v15.9.0/bin/node',
  '/Users/saurabhdaware/Desktop/projects/libraries/ts-run/example/.temp-bundle.ts-run.js',
  'randomstring',
  'anotherrandomstring'
]

Note: the example.ts is not forwarded because while executing script, we run the bundled version which is a javascript file