@mohitkumawat/warmup-cli 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/scripts/postinstall.js +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mohitkumawat/warmup-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Pre-warm your Claude rate limits while you sleep. One command, zero daily effort.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc",
|
|
11
11
|
"dev": "ts-node src/index.ts",
|
|
12
|
+
"postinstall": "node scripts/postinstall.js",
|
|
12
13
|
"start": "node dist/index.js",
|
|
13
14
|
"test": "ts-node test/run.ts"
|
|
14
15
|
},
|
|
@@ -51,7 +52,8 @@
|
|
|
51
52
|
"node": ">=16.0.0"
|
|
52
53
|
},
|
|
53
54
|
"files": [
|
|
54
|
-
"dist/**/*"
|
|
55
|
+
"dist/**/*",
|
|
56
|
+
"scripts/postinstall.js"
|
|
55
57
|
],
|
|
56
58
|
"directories": {
|
|
57
59
|
"test": "test"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
if (process.env.npm_config_global !== 'true') {
|
|
4
|
+
process.exit(0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const message = [
|
|
8
|
+
'',
|
|
9
|
+
'WarmUp installed successfully.',
|
|
10
|
+
'Run `warmup` to start the guided setup.',
|
|
11
|
+
'Run `warmup --help` to see all commands.',
|
|
12
|
+
'Claude Code must already be installed and authenticated.',
|
|
13
|
+
'',
|
|
14
|
+
].join('\n');
|
|
15
|
+
|
|
16
|
+
process.stdout.write(message);
|