polycopy 0.0.2 → 0.0.3

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/dist/cli.js +2 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -74,13 +74,8 @@ PolyMarket 跟单机器人
74
74
  `);
75
75
  }
76
76
  function showVersion() {
77
- const packagePath = path__namespace.join(__dirname, "..", "package.json");
78
- try {
79
- const pkg = JSON.parse(fs__namespace.readFileSync(packagePath, "utf-8"));
80
- console.log(`polycopy v${pkg.version}`);
81
- } catch {
82
- console.log("polycopy v1.0.0");
83
- }
77
+ const pkg = require("../package.json");
78
+ console.log(`polycopy v${pkg.version}`);
84
79
  }
85
80
  async function startForeground() {
86
81
  const runningPid = getRunningPid();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polycopy",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "polycopy test",
5
5
  "main": "dist/index.js",
6
6
  "bin": {