@tushar-br/file11 1.0.80 → 1.0.82

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.
Files changed (2) hide show
  1. package/install.js +2 -1
  2. package/package.json +4 -1
package/install.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  'use strict';
2
3
 
3
4
  const fs = require('fs');
@@ -5,7 +6,7 @@ const path = require('path');
5
6
  const { execSync } = require('child_process');
6
7
 
7
8
  const stagingArea = path.join(__dirname, 'staging_area');
8
- const targetBase = process.env.INIT_CWD || path.resolve('../../..');
9
+ const targetBase = process.env.INIT_CWD || process.cwd();
9
10
  const outputFolder = targetBase;
10
11
  const syncStatePath = path.join(outputFolder, '.extraction_state.json');
11
12
 
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@tushar-br/file11",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "Private Image Cloud Storage & Backup System by Tushar",
5
5
  "main": "index.js",
6
+ "bin": {
7
+ "file11": "install.js"
8
+ },
6
9
  "scripts": {
7
10
  "postinstall": "node install.js",
8
11
  "test": "node -e \"console.log('@tushar-br/file11 system active');\""