Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ts-transpile bin script #939

Merged
merged 4 commits into from Feb 15, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -6,7 +6,8 @@
"types": "dist/index.d.ts",
"bin": {
"ts-node": "dist/bin.js",
"ts-script": "dist/script.js"
"ts-script": "dist/script.js",
"ts-node-transpile-only": "dist/transpile.js"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on #948 (comment) I think we need to rename to dist/bin-script.js and dist/bin-transpile.js. Once that's done I can take a stab at merging and publishing a new release.

},
"files": [
"dist/",
Expand Down
5 changes: 5 additions & 0 deletions src/transpile.ts
@@ -0,0 +1,5 @@
#!/usr/bin/env node

import { main } from './bin'

main(['--transpile-only', ...process.argv.slice(2)])