Skip to content

v0.1.0 - Forward parent parameters

Latest
Compare
Choose a tag to compare
@saurabhdaware saurabhdaware released this 30 Aug 08:14
· 4 commits to main since this release
  • 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