@mo7yw4ng/openape 2.0.5 → 2.0.7

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/package.json +7 -7
  2. package/bin/openape +0 -29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mo7yw4ng/openape",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "CLI tool for CYCU i-Learning platform",
5
5
  "bin": {
6
6
  "openape": "bin/openape.js"
@@ -9,12 +9,12 @@
9
9
  "build": "tsc && npx shx mv bin/index.js bin/openape.js"
10
10
  },
11
11
  "optionalDependencies": {
12
- "@mo7yw4ng/openape-linux-x64": "2.0.5",
13
- "@mo7yw4ng/openape-linux-arm64": "2.0.5",
14
- "@mo7yw4ng/openape-darwin-x64": "2.0.5",
15
- "@mo7yw4ng/openape-darwin-arm64": "2.0.5",
16
- "@mo7yw4ng/openape-win32-x64": "2.0.5",
17
- "@mo7yw4ng/openape-win32-arm64": "2.0.5"
12
+ "@mo7yw4ng/openape-linux-x64": "2.0.7",
13
+ "@mo7yw4ng/openape-linux-arm64": "2.0.7",
14
+ "@mo7yw4ng/openape-darwin-x64": "2.0.7",
15
+ "@mo7yw4ng/openape-darwin-arm64": "2.0.7",
16
+ "@mo7yw4ng/openape-win32-x64": "2.0.7",
17
+ "@mo7yw4ng/openape-win32-arm64": "2.0.7"
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^5.0.0",
package/bin/openape DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const child_process_1 = require("child_process");
5
- function getExePath() {
6
- const arch = process.arch;
7
- let os = process.platform;
8
- let ext = "";
9
- if (os === "win32" || os === "cygwin") {
10
- os = "win32";
11
- ext = ".exe";
12
- }
13
- const pkg = `openape-${os}-${arch}`;
14
- try {
15
- return require.resolve(`${pkg}/bin/openape${ext}`);
16
- }
17
- catch {
18
- throw new Error(`Unsupported platform: ${process.platform} ${arch}\n` +
19
- `Try installing the platform package manually: npm install ${pkg}`);
20
- }
21
- }
22
- const result = (0, child_process_1.spawnSync)(getExePath(), process.argv.slice(2), {
23
- stdio: "inherit",
24
- });
25
- if (result.error) {
26
- console.error(result.error.message);
27
- process.exit(1);
28
- }
29
- process.exit(result.status ?? 0);