@martel/calyx 1.2.0 → 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 +14 -0
- package/package.json +1 -1
- package/src/cli/index.ts +2 -2
- package/tests/cli.test.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [1.2.1](https://github.com/bmartel/calyx/compare/v1.2.0...v1.2.1) (2026-07-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* resolve local linked dependency using dynamic relative paths in CLI scaffolding ([979a07b](https://github.com/bmartel/calyx/commit/979a07bd2b01f60215ae77650d6cd620195465d8))
|
|
14
|
+
|
|
1
15
|
# [1.2.0](https://github.com/bmartel/calyx/compare/v1.1.0...v1.2.0) (2026-07-01)
|
|
2
16
|
|
|
3
17
|
|
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];
|
|
@@ -109,7 +109,7 @@ function runNew(name: string) {
|
|
|
109
109
|
mkdirSync(join(name, 'src'), { recursive: true });
|
|
110
110
|
|
|
111
111
|
// Write package.json
|
|
112
|
-
const isDevMode =
|
|
112
|
+
const isDevMode = process.env.CALYX_DEV === 'true';
|
|
113
113
|
const calyxDependency = isDevMode ? "link:../.." : "^0.1.0";
|
|
114
114
|
|
|
115
115
|
const packageJson = {
|
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', () => {
|