@onslaughtsnail/caelis 0.2.5 → 0.3.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.
package/README.md CHANGED
@@ -8,7 +8,7 @@ Install `caelis` from npm.
8
8
  npm i -g @onslaughtsnail/caelis
9
9
  ```
10
10
 
11
- Supported platforms: macOS/Linux (`x64`, `arm64`).
11
+ Supported platforms: macOS/Linux/Windows (`x64`, `arm64`).
12
12
 
13
13
  or run without global install:
14
14
 
package/bin/caelis.js CHANGED
@@ -9,6 +9,8 @@ const packageMap = {
9
9
  'darwin:x64': '@onslaughtsnail/caelis-darwin-x64',
10
10
  'linux:arm64': '@onslaughtsnail/caelis-linux-arm64',
11
11
  'linux:x64': '@onslaughtsnail/caelis-linux-x64',
12
+ 'win32:arm64': '@onslaughtsnail/caelis-windows-arm64',
13
+ 'win32:x64': '@onslaughtsnail/caelis-windows-x64',
12
14
  };
13
15
 
14
16
  function resolvePackageName() {
@@ -24,7 +26,8 @@ function resolvePackageName() {
24
26
  function resolveBinaryPath(packageName) {
25
27
  try {
26
28
  const packageJsonPath = require.resolve(`${packageName}/package.json`);
27
- return path.join(path.dirname(packageJsonPath), 'runtime', 'caelis');
29
+ const binaryName = process.platform === 'win32' ? 'caelis.exe' : 'caelis';
30
+ return path.join(path.dirname(packageJsonPath), 'runtime', binaryName);
28
31
  } catch (err) {
29
32
  console.error(`[caelis] platform package not installed: ${packageName}`);
30
33
  console.error('[caelis] reinstall without --omit=optional, then try again.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onslaughtsnail/caelis",
3
- "version": "0.2.5",
3
+ "version": "0.3.2",
4
4
  "description": "caelis CLI distributed via npm",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,7 +21,8 @@
21
21
  ],
22
22
  "os": [
23
23
  "darwin",
24
- "linux"
24
+ "linux",
25
+ "win32"
25
26
  ],
26
27
  "cpu": [
27
28
  "x64",
@@ -34,10 +35,12 @@
34
35
  "publish-release": "node ./scripts/publish-release.mjs"
35
36
  },
36
37
  "optionalDependencies": {
37
- "@onslaughtsnail/caelis-darwin-arm64": "0.2.5",
38
- "@onslaughtsnail/caelis-darwin-x64": "0.2.5",
39
- "@onslaughtsnail/caelis-linux-arm64": "0.2.5",
40
- "@onslaughtsnail/caelis-linux-x64": "0.2.5"
38
+ "@onslaughtsnail/caelis-darwin-arm64": "0.3.2",
39
+ "@onslaughtsnail/caelis-darwin-x64": "0.3.2",
40
+ "@onslaughtsnail/caelis-linux-arm64": "0.3.2",
41
+ "@onslaughtsnail/caelis-linux-x64": "0.3.2",
42
+ "@onslaughtsnail/caelis-windows-arm64": "0.3.2",
43
+ "@onslaughtsnail/caelis-windows-x64": "0.3.2"
41
44
  },
42
45
  "publishConfig": {
43
46
  "access": "public",