@highstate/cli 0.20.0 → 0.21.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/assets/template/package.tpl.json +1 -8
- package/assets/template/packages/units/package.tpl.json +1 -3
- package/assets/tsconfig.base.json +1 -0
- package/dist/{chunk-KA6ZC6BV.js → chunk-n0q0pces.js} +467 -597
- package/dist/{library-loader-PZWYMBAE.js → chunk-sxh2gdkm.js} +21 -17
- package/dist/{chunk-CMECLVT7.js → chunk-vcev74he.js} +4 -3
- package/dist/commands/index.js +30 -4
- package/dist/highstate.manifest.json +2 -2
- package/dist/main.js +19 -7
- package/package.json +13 -14
- package/src/commands/build.ts +36 -20
- package/src/commands/designer.ts +2 -25
- package/src/commands/init.ts +6 -66
- package/src/commands/update.ts +26 -31
- package/src/shared/bin-transformer.ts +2 -3
- package/src/shared/index.ts +0 -1
- package/src/shared/overrides.ts +5 -41
- package/src/shared/project-versions.ts +6 -31
- package/src/shared/pulumi-cli.ts +5 -2
- package/src/shared/schema-transformer.ts +1 -2
- package/src/shared/source-hash-calculator.ts +55 -2
- package/LICENSE +0 -21
- package/assets/template/pnpm-workspace.tpl.yaml +0 -4
- package/dist/chunk-CMECLVT7.js.map +0 -1
- package/dist/chunk-KA6ZC6BV.js.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/library-loader-PZWYMBAE.js.map +0 -1
- package/dist/main.js.map +0 -1
- package/src/shared/pnpm-workspace.ts +0 -32
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { readFile, writeFile } from "node:fs/promises"
|
|
2
|
-
import { resolve } from "node:path"
|
|
3
|
-
import { parse, stringify } from "yaml"
|
|
4
|
-
|
|
5
|
-
export type PnpmWorkspace = {
|
|
6
|
-
packages?: string[]
|
|
7
|
-
overrides?: Record<string, string>
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function resolvePnpmWorkspacePath(projectRoot: string): string {
|
|
11
|
-
return resolve(projectRoot, "pnpm-workspace.yaml")
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export async function readPnpmWorkspace(filePath: string): Promise<PnpmWorkspace> {
|
|
15
|
-
const raw = await readFile(filePath, "utf8")
|
|
16
|
-
const parsed = parse(raw)
|
|
17
|
-
|
|
18
|
-
if (typeof parsed !== "object" || parsed === null) {
|
|
19
|
-
return {}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return parsed as PnpmWorkspace
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export async function writePnpmWorkspace(
|
|
26
|
-
filePath: string,
|
|
27
|
-
workspace: PnpmWorkspace,
|
|
28
|
-
): Promise<void> {
|
|
29
|
-
const raw = stringify(workspace)
|
|
30
|
-
|
|
31
|
-
await writeFile(filePath, raw, "utf8")
|
|
32
|
-
}
|