@syncular/cli 0.0.0-46 → 0.0.0-50

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/npm/run.mjs CHANGED
@@ -1,10 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawnSync } from 'node:child_process';
3
- import { ensureInstalledBinary } from './shared.mjs';
3
+ import { ensureInstalledBinary, resolvePackageVersion } from './shared.mjs';
4
4
 
5
5
  async function main() {
6
6
  const binaryPath = await ensureInstalledBinary({ verbose: false });
7
+ const packageVersion = resolvePackageVersion();
7
8
  const result = spawnSync(binaryPath, process.argv.slice(2), {
9
+ env: {
10
+ ...process.env,
11
+ SYNCULAR_CLI_NPM_VERSION: packageVersion,
12
+ },
8
13
  stdio: 'inherit',
9
14
  });
10
15
 
package/npm/shared.mjs CHANGED
@@ -177,7 +177,7 @@ async function downloadFile(url, destinationPath) {
177
177
  }
178
178
  }
179
179
 
180
- function resolveVersion() {
180
+ export function resolvePackageVersion() {
181
181
  const metadata = readPackageMetadata();
182
182
  const version =
183
183
  typeof metadata.version === 'string' ? metadata.version.trim() : '';
@@ -215,12 +215,12 @@ export function shouldSkipInstall() {
215
215
  return true;
216
216
  }
217
217
 
218
- return resolveVersion() === '0.0.0';
218
+ return resolvePackageVersion() === '0.0.0';
219
219
  }
220
220
 
221
221
  export async function ensureInstalledBinary(options = {}) {
222
222
  const verbose = options.verbose === true;
223
- const version = resolveVersion();
223
+ const version = resolvePackageVersion();
224
224
  const target = resolveExecutableTarget();
225
225
  const destinationPath = resolveInstalledBinaryPath(version, target);
226
226
 
@@ -259,13 +259,13 @@ export async function ensureInstalledBinary(options = {}) {
259
259
  }
260
260
 
261
261
  export function describeDefaultInstallPath() {
262
- const version = resolveVersion();
262
+ const version = resolvePackageVersion();
263
263
  const target = resolveExecutableTarget();
264
264
  return resolveInstalledBinaryPath(version, target);
265
265
  }
266
266
 
267
267
  export function describeReleaseArtifactName() {
268
- const version = resolveVersion();
268
+ const version = resolvePackageVersion();
269
269
  const target = resolveExecutableTarget();
270
270
  return binaryFileName(version, target);
271
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/cli",
3
- "version": "0.0.0-46",
3
+ "version": "0.0.0-50",
4
4
  "description": "Unified CLI for Syncular OSS and Spaces workflows",
5
5
  "license": "MIT",
6
6
  "author": "Benjamin Kniffler",
@@ -50,13 +50,13 @@
50
50
  "release": "bun ../config/bin/publish.ts"
51
51
  },
52
52
  "devDependencies": {
53
- "@syncular/cli-buildpack-contract-worker": "0.0.0-46",
54
- "@syncular/cli-core": "0.0.0-46",
55
- "@syncular/cli-runtime-dev": "0.0.0-46",
56
- "@syncular/cli-template-spaces-app": "0.0.0-46",
57
- "@syncular/cli-template-spaces-demo": "0.0.0-46",
58
- "@syncular/cli-template-syncular-demo": "0.0.0-46",
59
- "@syncular/cli-template-syncular-libraries": "0.0.0-46",
53
+ "@syncular/cli-buildpack-contract-worker": "0.0.0-50",
54
+ "@syncular/cli-core": "0.0.0-50",
55
+ "@syncular/cli-runtime-dev": "0.0.0-50",
56
+ "@syncular/cli-template-spaces-app": "0.0.0-50",
57
+ "@syncular/cli-template-spaces-demo": "0.0.0-50",
58
+ "@syncular/cli-template-syncular-demo": "0.0.0-50",
59
+ "@syncular/cli-template-syncular-libraries": "0.0.0-50",
60
60
  "cross-keychain": "^1.1.0",
61
61
  "ink": "^6.8.0",
62
62
  "react": "^19.2.4",