@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 +7 -0
- package/package.json +1 -1
- package/src/cli/index.ts +4 -2
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
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
|
|
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,
|