@martel/calyx 1.2.1 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.2.3](https://github.com/bmartel/calyx/compare/v1.2.2...v1.2.3) (2026-07-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * dynamically read own package version for generated project dependencies ([3d55944](https://github.com/bmartel/calyx/commit/3d559443e9969638d68769bf9e127ac88df934c9))
7
+
8
+ ## [1.2.2](https://github.com/bmartel/calyx/compare/v1.2.1...v1.2.2) (2026-07-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * make CLI scaffolding environment-variable driven for local test suite and clean npm package release ([b0a2aec](https://github.com/bmartel/calyx/commit/b0a2aecdce7ac44927499f12aacb0cc720a65192))
14
+
1
15
  ## [1.2.1](https://github.com/bmartel/calyx/compare/v1.2.0...v1.2.1) (2026-07-01)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@martel/calyx",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "High-performance Bun-native NestJS-compatible framework",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
package/src/cli/index.ts CHANGED
@@ -108,11 +108,22 @@ function runNew(name: string) {
108
108
  mkdirSync(name, { recursive: true });
109
109
  mkdirSync(join(name, 'src'), { recursive: true });
110
110
 
111
- // Write package.json
112
- const isDevMode = existsSync(join(import.meta.dir, '../../package.json'));
113
- const calyxDependency = isDevMode
114
- ? `link:${relative(resolve(name), join(import.meta.dir, '../..')).replace(/\\/g, '/')}`
115
- : "^0.1.0";
111
+ const isDevMode = process.env.CALYX_DEV === 'true';
112
+
113
+ let packageVersion = '0.1.0';
114
+ try {
115
+ const selfPkgPath = join(import.meta.dir, '../../package.json');
116
+ if (existsSync(selfPkgPath)) {
117
+ const selfPkg = JSON.parse(readFileSync(selfPkgPath, 'utf-8'));
118
+ if (selfPkg.version) {
119
+ packageVersion = selfPkg.version;
120
+ }
121
+ }
122
+ } catch {
123
+ // Fallback
124
+ }
125
+
126
+ const calyxDependency = isDevMode ? "link:../.." : `^${packageVersion}`;
116
127
 
117
128
  const packageJson = {
118
129
  name,
package/tests/cli.test.ts CHANGED
@@ -3,6 +3,8 @@ import { spawnSync } from 'child_process';
3
3
  import { existsSync, rmSync, readFileSync, writeFileSync } from 'fs';
4
4
  import { join } from 'path';
5
5
 
6
+ process.env.CALYX_DEV = 'true';
7
+
6
8
  const testAppName = 'scratch/my-cli-test-app';
7
9
 
8
10
  describe('Calyx CLI Integration Tests', () => {