@martel/calyx 1.2.1 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.2](https://github.com/bmartel/calyx/compare/v1.2.1...v1.2.2) (2026-07-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * make CLI scaffolding environment-variable driven for local test suite and clean npm package release ([b0a2aec](https://github.com/bmartel/calyx/commit/b0a2aecdce7ac44927499f12aacb0cc720a65192))
7
+
1
8
  ## [1.2.1](https://github.com/bmartel/calyx/compare/v1.2.0...v1.2.1) (2026-07-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@martel/calyx",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
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
@@ -109,10 +109,8 @@ function runNew(name: string) {
109
109
  mkdirSync(join(name, 'src'), { recursive: true });
110
110
 
111
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";
112
+ const isDevMode = process.env.CALYX_DEV === 'true';
113
+ const calyxDependency = isDevMode ? "link:../.." : "^0.1.0";
116
114
 
117
115
  const packageJson = {
118
116
  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', () => {