@simon_he/pi 0.0.12 → 0.0.13

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
@@ -36,6 +36,25 @@ https://user-images.githubusercontent.com/57086651/203143603-9e78f686-399e-4c3d-
36
36
  pbuild
37
37
  ```
38
38
 
39
+ ## Power
40
+ The current environment is npm | yarn | pnpm, and it supports passing some args --silent
41
+
42
+ - prun dev The dev command in the current package.json
43
+ - prun If no command is specified, provide all scripts command options under the current package
44
+ - prun playground, provide all scripts command options under the current package
45
+
46
+ The current environment is go
47
+
48
+ - prun message, it will find message.go first, if not found, it will find message/main.go to execute
49
+
50
+ The current environment is rust
51
+
52
+ - prun executable cargo run
53
+
54
+ workspace of pnpm | yarn
55
+
56
+ - pfind Select the package under the current workspace, and then select the corresponding command
57
+
39
58
  ## :monocle_face: Feature
40
59
  ```
41
60
  <-- Go -->
package/dist/index.cjs CHANGED
@@ -16,7 +16,7 @@ const process__default = /*#__PURE__*/_interopDefaultLegacy(process);
16
16
  const ora__default = /*#__PURE__*/_interopDefaultLegacy(ora);
17
17
  const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
18
18
 
19
- const version = "0.0.12";
19
+ const version = "0.0.13";
20
20
 
21
21
  const rootPath = process__default.cwd();
22
22
  const __filename$1 = url$1.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href)));
@@ -98,7 +98,7 @@ function returnVersion(argv) {
98
98
  simonJsTool.jsShell(`gum style --foreground 212 --border-foreground 212 --border double --align center --width 50 --margin "1 2" --padding "2 4" 'pi version:${version}' 'Please give me a \u{1F31F} for my efforts'`);
99
99
  process__default.exit(0);
100
100
  } else if (arg === "-h" || arg === "--help") {
101
- simonJsTool.jsShell(`gum style --foreground 212 --border-foreground 212 --border double --align center --width 50 --margin "1 2" --padding "1 1" 'PI Commands:' 'pi: install package' 'pui: uninstall package' 'prun: run package script' 'pinit: package init' 'pbuild: go build | cargo build'`);
101
+ simonJsTool.jsShell(`gum style --foreground 212 --border-foreground 212 --border double --align center --width 50 --margin "1 2" --padding "1 1" 'PI Commands:' 'pi: install package' 'pui: uninstall package' 'prun: run package script' 'pinit: package init' 'pbuild: go build | cargo build' 'pfind: find monorepo of yarn or pnpm'`);
102
102
  process__default.exit(0);
103
103
  }
104
104
  }
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { useNodeWorker, jsShell, getPkgTool } from 'simon-js-tool';
5
5
  import ora from 'ora';
6
6
  import fg from 'fast-glob';
7
7
 
8
- const version = "0.0.12";
8
+ const version = "0.0.13";
9
9
 
10
10
  const rootPath = process.cwd();
11
11
  const __filename = fileURLToPath(import.meta.url);
@@ -87,7 +87,7 @@ function returnVersion(argv) {
87
87
  jsShell(`gum style --foreground 212 --border-foreground 212 --border double --align center --width 50 --margin "1 2" --padding "2 4" 'pi version:${version}' 'Please give me a \u{1F31F} for my efforts'`);
88
88
  process.exit(0);
89
89
  } else if (arg === "-h" || arg === "--help") {
90
- jsShell(`gum style --foreground 212 --border-foreground 212 --border double --align center --width 50 --margin "1 2" --padding "1 1" 'PI Commands:' 'pi: install package' 'pui: uninstall package' 'prun: run package script' 'pinit: package init' 'pbuild: go build | cargo build'`);
90
+ jsShell(`gum style --foreground 212 --border-foreground 212 --border double --align center --width 50 --margin "1 2" --padding "1 1" 'PI Commands:' 'pi: install package' 'pui: uninstall package' 'prun: run package script' 'pinit: package init' 'pbuild: go build | cargo build' 'pfind: find monorepo of yarn or pnpm'`);
91
91
  process.exit(0);
92
92
  }
93
93
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "packageManager": "pnpm@7.2.1",
6
6
  "description": "",
7
7
  "author": "Simon He",