@karmaniverous/stan-core 0.6.1 → 0.7.0
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/README.md +16 -0
- package/dist/mjs/index.js +1 -1
- package/dist/types/index.d.ts +4 -0
- package/package.json +4 -10
- package/dist/mjs/index-CERcUEt-.js +0 -1
- package/dist/mjs/index-DEnUXENF.js +0 -1
- package/dist/mjs/typescript-CwUyYoqG.js +0 -6
package/README.md
CHANGED
|
@@ -178,6 +178,22 @@ When dependency graph mode is enabled, the engine can create a small `archive.me
|
|
|
178
178
|
- Includes repo-root (top-level) base files selected by current selection config
|
|
179
179
|
- Excludes staged payloads under `<stanPath>/context/{npm,abs}/**` by omission
|
|
180
180
|
|
|
181
|
+
## Dependency graph mode: TypeScript injection (host contract)
|
|
182
|
+
|
|
183
|
+
When you call `buildDependencyMeta(...)`, `@karmaniverous/stan-core` delegates dependency graph generation to its peer dependency `@karmaniverous/stan-context`.
|
|
184
|
+
|
|
185
|
+
TypeScript must be provided by the host environment (typically `stan-cli`) via either `typescript` (preferred) or `typescriptPath`. `stan-core` does not attempt to resolve or import TypeScript itself; it passes these values through to `stan-context`.
|
|
186
|
+
|
|
187
|
+
If neither `typescript` nor `typescriptPath` is provided, `buildDependencyMeta` will throw (the error originates from `stan-context`).
|
|
188
|
+
|
|
189
|
+
Minimal example:
|
|
190
|
+
|
|
191
|
+
```ts
|
|
192
|
+
import ts from 'typescript';
|
|
193
|
+
import { buildDependencyMeta } from '@karmaniverous/stan-core';
|
|
194
|
+
await buildDependencyMeta({ cwd: process.cwd(), stanPath: '.stan', typescript: ts });
|
|
195
|
+
```
|
|
196
|
+
|
|
181
197
|
## Environment variables
|
|
182
198
|
|
|
183
199
|
See [Env Vars](./guides/env-vars.md) for a complete list of environment variable switches observed by the engine, tests, and release scripts.
|