packitup 0.1.1 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +0 -2
  2. package/install.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -15,8 +15,6 @@
15
15
  ### install
16
16
  ```bash
17
17
  npm install packitup
18
- cd node_modules/packitup
19
- npm run install
20
18
  ```
21
19
 
22
20
  ```bash
package/install.js CHANGED
@@ -4,7 +4,7 @@ require.main === module && (() => {
4
4
  const path = require('path');
5
5
  const fs = require('fs');
6
6
  const process = require('process');
7
- const pathDir = process.env.PATH.split(path.delimiter)[0];
7
+ const pathDir = process.env.PATH.split(path.delimiter).find(pth => !pth.includes('/.bin'));
8
8
  if (!pathDir) throw new Error('Your command catalog has been stolen.');
9
9
  const packitup = fs.readFileSync('./dist/packitup.js', 'utf8');
10
10
  const shebang = '#!/usr/bin/env node';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "packitup",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A JavaScript packager with a complete module system. Currently supports CommonJS modules and can export to ES modules.",
5
5
  "keywords": [
6
6
  "javascript",