@caelis/caelis 0.21.0 → 0.22.1
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/bin/caelis.js +9 -1
- package/package.json +7 -7
package/bin/caelis.js
CHANGED
|
@@ -38,6 +38,8 @@ function resolveBinaryPath(packageName) {
|
|
|
38
38
|
|
|
39
39
|
const packageName = resolvePackageName();
|
|
40
40
|
const binPath = resolveBinaryPath(packageName);
|
|
41
|
+
const packageRoot = path.resolve(__dirname, '..');
|
|
42
|
+
const platformPackageRoot = path.dirname(require.resolve(`${packageName}/package.json`));
|
|
41
43
|
|
|
42
44
|
if (!fs.existsSync(binPath)) {
|
|
43
45
|
console.error('[caelis] binary not found at', binPath);
|
|
@@ -47,7 +49,13 @@ if (!fs.existsSync(binPath)) {
|
|
|
47
49
|
|
|
48
50
|
const child = spawn(binPath, process.argv.slice(2), {
|
|
49
51
|
stdio: 'inherit',
|
|
50
|
-
env:
|
|
52
|
+
env: {
|
|
53
|
+
...process.env,
|
|
54
|
+
CAELIS_INSTALL_METHOD: 'npm',
|
|
55
|
+
CAELIS_NPM_PACKAGE_DIR: packageRoot,
|
|
56
|
+
CAELIS_NPM_PLATFORM_PACKAGE: packageName,
|
|
57
|
+
CAELIS_NPM_PLATFORM_PACKAGE_DIR: platformPackageRoot,
|
|
58
|
+
},
|
|
51
59
|
});
|
|
52
60
|
|
|
53
61
|
child.on('error', (err) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caelis/caelis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "caelis CLI distributed via npm",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"publish-release": "node ./scripts/publish-release.mjs"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@caelis/caelis-darwin-arm64": "0.
|
|
39
|
-
"@caelis/caelis-darwin-x64": "0.
|
|
40
|
-
"@caelis/caelis-linux-arm64": "0.
|
|
41
|
-
"@caelis/caelis-linux-x64": "0.
|
|
42
|
-
"@caelis/caelis-windows-arm64": "0.
|
|
43
|
-
"@caelis/caelis-windows-x64": "0.
|
|
38
|
+
"@caelis/caelis-darwin-arm64": "0.22.1",
|
|
39
|
+
"@caelis/caelis-darwin-x64": "0.22.1",
|
|
40
|
+
"@caelis/caelis-linux-arm64": "0.22.1",
|
|
41
|
+
"@caelis/caelis-linux-x64": "0.22.1",
|
|
42
|
+
"@caelis/caelis-windows-arm64": "0.22.1",
|
|
43
|
+
"@caelis/caelis-windows-x64": "0.22.1"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|