@simon_he/pi 0.0.8 → 0.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 CHANGED
@@ -42,7 +42,7 @@ You can configure the loading style in .zshrc, as follows:
42
42
  export PI_COLOR=red # loadingstyle color
43
43
  export PI_SPINNER=star # loadingstyle
44
44
  ```
45
- - 70+ types of styles, from[cli-spinners](https://jsfiddle.net/sindresorhus/2eLtsbey/embedded/result/),You can choose to fill in the name in PI_SPINNER.
45
+ - 70+ types of styles, from [cli-spinners](https://jsfiddle.net/sindresorhus/2eLtsbey/embedded/result/),You can choose to fill in the name in PI_SPINNER.
46
46
  - Color options: 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray', Fill in PI_COLOR.
47
47
 
48
48
  ## :battery: Dependency
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ const path__default = /*#__PURE__*/_interopDefaultLegacy(path);
14
14
  const process__default = /*#__PURE__*/_interopDefaultLegacy(process);
15
15
  const ora__default = /*#__PURE__*/_interopDefaultLegacy(ora);
16
16
 
17
- const version = "0.0.8";
17
+ const version = "0.0.9";
18
18
 
19
19
  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)));
20
20
  const __dirname$1 = path__default.dirname(__filename$1);
@@ -103,7 +103,7 @@ const runMap = {
103
103
  pinit
104
104
  };
105
105
  function isGo() {
106
- const { result } = simonJsTool.jsShell('test -f "go.mod" && echo "0"|| echo "1"', "pipe");
106
+ const { result } = simonJsTool.jsShell('test -f "main.go" && echo "0"|| echo "1"', "pipe");
107
107
  return result === "0";
108
108
  }
109
109
  function isRust() {
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'url';
4
4
  import { useNodeWorker, jsShell, getPkgTool } from 'simon-js-tool';
5
5
  import ora from 'ora';
6
6
 
7
- const version = "0.0.8";
7
+ const version = "0.0.9";
8
8
 
9
9
  const __filename = fileURLToPath(import.meta.url);
10
10
  const __dirname = path.dirname(__filename);
@@ -93,7 +93,7 @@ const runMap = {
93
93
  pinit
94
94
  };
95
95
  function isGo() {
96
- const { result } = jsShell('test -f "go.mod" && echo "0"|| echo "1"', "pipe");
96
+ const { result } = jsShell('test -f "main.go" && echo "0"|| echo "1"', "pipe");
97
97
  return result === "0";
98
98
  }
99
99
  function isRust() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "packageManager": "pnpm@7.2.1",
6
6
  "description": "",
7
7
  "author": "Simon He",