offline-npm-manager 1.0.7 → 1.0.8

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
@@ -276,18 +276,20 @@ offline-npm add express --deps
276
276
 
277
277
  ## Changelog
278
278
 
279
- ### Version 1.0.7 (Latest)
279
+ ### Version 1.0.07 (Latest)
280
280
 
281
281
  **🐛 Bug Fixes:**
282
282
 
283
283
  - **Fixed dependency version format in package.json** - When using `offline-npm install <package> --save`, dependencies are now correctly written with semver format (e.g., `"axios": "^1.1.0"`) instead of local file paths (e.g., `"axios": "file:demo/axios"`)
284
284
  - **Fixed package-lock.json resolved URLs** - Package lock file now properly references npm registry URLs (`https://registry.npmjs.org/...`) instead of local cache paths
285
+ - **Updated metadata** - Added proper `install` field with installation command metadata for better package information Ex: npm i -g offline-npm-manager
285
286
 
286
287
  **Impact:**
287
288
 
288
289
  - Package.json files are now production-ready with proper version numbers
289
290
  - Package-lock.json correctly points to official npm registry
290
291
  - No more manual editing required after offline installations
292
+ - Installation metadata is now properly documented
291
293
 
292
294
  ---
293
295
 
package/dist/cli.cjs CHANGED
@@ -621,7 +621,7 @@ var require_package = __commonJS({
621
621
  "package.json"(exports2, module2) {
622
622
  module2.exports = {
623
623
  name: "offline-npm-manager",
624
- version: "1.0.7",
624
+ version: "1.0.8",
625
625
  description: "Download npm packages online, install them offline later",
626
626
  bin: {
627
627
  "offline-npm": "./dist/cli.cjs"
@@ -631,7 +631,8 @@ var require_package = __commonJS({
631
631
  prepublishOnly: "npm run build",
632
632
  test: "node test/test.js",
633
633
  dev: "node ./bin/offline-npm.js",
634
- start: "npm run dev"
634
+ start: "npm run dev",
635
+ "install:global": "npm i -g offline-npm-manager"
635
636
  },
636
637
  keywords: [
637
638
  "npm",
@@ -662,6 +663,10 @@ var require_package = __commonJS({
662
663
  node: ">=16.0.0"
663
664
  },
664
665
  postuninstall: `node -e "const fs=require('fs');const path=require('path');const os=require('os');const dir=path.join(os.homedir(),'.offline-npm-cache');if(fs.existsSync(dir))fs.rmSync(dir,{recursive:true,force:true});"`,
666
+ install: {
667
+ type: "global",
668
+ command: "npm i -g offline-npm-manager"
669
+ },
665
670
  repository: {
666
671
  type: "git",
667
672
  url: "https://github.com/SagorAhamed251245/offline-npm-manager.git"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "offline-npm-manager",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Download npm packages online, install them offline later",
5
5
  "bin": {
6
6
  "offline-npm": "./dist/cli.cjs"
@@ -10,7 +10,8 @@
10
10
  "prepublishOnly": "npm run build",
11
11
  "test": "node test/test.js",
12
12
  "dev": "node ./bin/offline-npm.js",
13
- "start": "npm run dev"
13
+ "start": "npm run dev",
14
+ "install:global": "npm i -g offline-npm-manager"
14
15
  },
15
16
  "keywords": [
16
17
  "npm",
@@ -41,6 +42,10 @@
41
42
  "node": ">=16.0.0"
42
43
  },
43
44
  "postuninstall": "node -e \"const fs=require('fs');const path=require('path');const os=require('os');const dir=path.join(os.homedir(),'.offline-npm-cache');if(fs.existsSync(dir))fs.rmSync(dir,{recursive:true,force:true});\"",
45
+ "install": {
46
+ "type": "global",
47
+ "command": "npm i -g offline-npm-manager"
48
+ },
44
49
  "repository": {
45
50
  "type": "git",
46
51
  "url": "https://github.com/SagorAhamed251245/offline-npm-manager.git"