Skip to content

Commit

Permalink
Merge 17e5102 into f3f61e2
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 15, 2020
2 parents f3f61e2 + 17e5102 commit 302364e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "dist/index.d.ts",
"bin": {
"ts-node": "dist/bin.js",
"ts-script": "dist/bin-script.js",
"ts-script": "dist/bin-script-deprecated.js",
"ts-node-script": "dist/bin-script.js",
"ts-node-transpile-only": "dist/bin-transpile.js"
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions src/bin-script-deprecated.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node

import { main } from './bin'

console.warn(
'ts-script has been deprecated and will be removed in the next major release.',
'Please use ts-node-script instead'
)

main(['--script-mode', ...process.argv.slice(2)])

0 comments on commit 302364e

Please sign in to comment.