@navneet_25/tempjs 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -5,8 +5,8 @@ A single repository containing multiple website project templates, plus a small
5
5
  ## Quick start
6
6
 
7
7
  ```bash
8
- # Install the CLI globally (after publishing or linking locally)
9
- npm install -g tempjs
8
+ # Install the CLI globally
9
+ npm install -g @navneet_25/tempjs
10
10
 
11
11
  # Create a new project
12
12
  mkdir hotel-client
@@ -79,10 +79,17 @@ When templates exist locally under `templates/`, the CLI uses them directly (fas
79
79
 
80
80
  ### Global install (npm)
81
81
 
82
+ To install the CLI for the first time:
82
83
  ```bash
83
- npm install -g tempjs
84
+ npm install -g @navneet_25/tempjs
84
85
  ```
85
86
 
87
+ To update an existing installation to the absolute latest version (bypassing local NPM caches):
88
+ ```bash
89
+ npm install -g @navneet_25/tempjs@latest
90
+ ```
91
+ *Use the `@latest` flag when you have recently pushed a new template or updated configuration, to ensure NPM fetches the updated `templates.json` mapping configuration immediately.*
92
+
86
93
  ### From this repository
87
94
 
88
95
  ```bash
package/cli/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  import { execSync } from "node:child_process";
2
4
  import { createInterface } from "node:readline/promises";
3
5
  import { stdin as input, stdout as output } from "node:process";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navneet_25/tempjs",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CLI to instantiate website project templates from a single GitHub repository",
5
5
  "type": "module",
6
6
  "bin": {
package/templates.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "repository": {
3
- "owner": "your-username",
3
+ "owner": "SidhartGautam25",
4
4
  "repo": "templates",
5
5
  "branch": "main",
6
6
  "templatesPath": "templates"
@@ -17,4 +17,4 @@
17
17
  "description": "Real estate and property listing website with admin panel and property management"
18
18
  }
19
19
  }
20
- }
20
+ }