offline-npm-manager 1.0.7 → 1.0.9
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 +2 -21
- package/dist/cli.cjs +7 -2
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -43,10 +43,10 @@ npm install -g offline-npm-manager
|
|
|
43
43
|
|
|
44
44
|
This installs the `offline-npm` command globally.
|
|
45
45
|
|
|
46
|
-
###
|
|
46
|
+
### Uninstall Globally
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
npm
|
|
49
|
+
npm uninstall -g offline-npm-manager
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
---
|
|
@@ -272,25 +272,6 @@ Check spelling or internet connection.
|
|
|
272
272
|
offline-npm add express --deps
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
-
---
|
|
276
|
-
|
|
277
|
-
## Changelog
|
|
278
|
-
|
|
279
|
-
### Version 1.0.7 (Latest)
|
|
280
|
-
|
|
281
|
-
**🐛 Bug Fixes:**
|
|
282
|
-
|
|
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
|
-
- **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
|
-
|
|
286
|
-
**Impact:**
|
|
287
|
-
|
|
288
|
-
- Package.json files are now production-ready with proper version numbers
|
|
289
|
-
- Package-lock.json correctly points to official npm registry
|
|
290
|
-
- No more manual editing required after offline installations
|
|
291
|
-
|
|
292
|
-
---
|
|
293
|
-
|
|
294
275
|
## License
|
|
295
276
|
|
|
296
277
|
MIT
|
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.
|
|
624
|
+
version: "1.0.9",
|
|
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.
|
|
3
|
+
"version": "1.0.9",
|
|
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"
|