@martel/calyx 1.2.0 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.1](https://github.com/bmartel/calyx/compare/v1.2.0...v1.2.1) (2026-07-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * resolve local linked dependency using dynamic relative paths in CLI scaffolding ([979a07b](https://github.com/bmartel/calyx/commit/979a07bd2b01f60215ae77650d6cd620195465d8))
7
+
1
8
  # [1.2.0](https://github.com/bmartel/calyx/compare/v1.1.0...v1.2.0) (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.0",
3
+ "version": "1.2.1",
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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  import { spawnSync } from 'child_process';
3
3
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
4
- import { join, dirname } from 'path';
4
+ import { join, dirname, relative, resolve } from 'path';
5
5
 
6
6
  const args = Bun.argv.slice(2);
7
7
  const command = args[0];
@@ -110,7 +110,9 @@ function runNew(name: string) {
110
110
 
111
111
  // Write package.json
112
112
  const isDevMode = existsSync(join(import.meta.dir, '../../package.json'));
113
- const calyxDependency = isDevMode ? "link:../.." : "^0.1.0";
113
+ const calyxDependency = isDevMode
114
+ ? `link:${relative(resolve(name), join(import.meta.dir, '../..')).replace(/\\/g, '/')}`
115
+ : "^0.1.0";
114
116
 
115
117
  const packageJson = {
116
118
  name,