Skip to content

Commit e88e11e

Browse files
kvzclaude
andcommitted
chore: deprecate in favor of transloadit package
The CLI has been merged into the official transloadit npm package. This adds a deprecation notice to the README and a postinstall warning directing users to migrate. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 734199d commit e88e11e

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Transloadify
22

3+
> **⚠️ DEPRECATED**: This package has been merged into the official [`transloadit`](https://www.npmjs.com/package/transloadit) npm package. Please use `transloadit` instead, which now includes the CLI.
4+
>
5+
> ```bash
6+
> npm install -g transloadit
7+
> npx transloadit --help
8+
> ```
9+
>
10+
> See the [transloadit package documentation](https://github.com/transloadit/node-sdk#command-line-interface-cli) for CLI usage.
11+
12+
---
13+
314
<!--more-->
415
516
Transloadify is a command line interface for [Transloadit](https://transloadit.com)'s file uploading and encoding service.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint:js": "eslint src test",
1717
"lint": "npm-run-all --parallel lint:*",
1818
"mocha": "NODE_ENV=test mocha --compilers js:babel-register --reporter spec test/",
19-
"postinstall": "install-completion bash _transloadify",
19+
"postinstall": "node scripts/postinstall.js || true",
2020
"prepublish": "npm run build",
2121
"prestart": "npm run build",
2222
"release:major": "env SEMANTIC=major npm run release",
@@ -33,6 +33,7 @@
3333
"files": [
3434
"lib",
3535
"bin",
36+
"scripts",
3637
"_transloadify"
3738
],
3839
"dependencies": {

scripts/postinstall.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env node
2+
3+
const message = `
4+
╔════════════════════════════════════════════════════════════════════════════╗
5+
║ ║
6+
║ ⚠️ DEPRECATION WARNING ║
7+
║ ║
8+
║ The 'transloadify' package has been deprecated. ║
9+
║ The CLI is now included in the official 'transloadit' package. ║
10+
║ ║
11+
║ Please migrate to the new package: ║
12+
║ ║
13+
║ npm uninstall -g transloadify ║
14+
║ npm install -g transloadit ║
15+
║ ║
16+
║ Usage remains the same: ║
17+
║ npx transloadit assemblies create --help ║
18+
║ ║
19+
║ Documentation: https://github.com/transloadit/node-sdk ║
20+
║ ║
21+
╚════════════════════════════════════════════════════════════════════════════╝
22+
`
23+
24+
console.warn(message)

0 commit comments

Comments
 (0)