@cdktn/cli-core 0.24.0-pre.91 → 0.24.0-pre.94
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdktn/cli-core",
|
|
3
|
-
"version": "0.24.0-pre.
|
|
3
|
+
"version": "0.24.0-pre.94",
|
|
4
4
|
"description": "CDK Terrain CLI Core, meant for internal use only",
|
|
5
5
|
"main": "build/lib/index.js",
|
|
6
6
|
"types": "build/lib/index.d.ts",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"xml-js": "1.6.11",
|
|
48
48
|
"xstate": "4.38.3",
|
|
49
49
|
"zod": "4.4.3",
|
|
50
|
-
"@cdktn/
|
|
51
|
-
"@cdktn/
|
|
52
|
-
"@cdktn/
|
|
53
|
-
"
|
|
54
|
-
"cdktn": "0.24.0-pre.
|
|
50
|
+
"@cdktn/hcl-tools": "0.24.0-pre.94",
|
|
51
|
+
"@cdktn/provider-schema": "0.24.0-pre.94",
|
|
52
|
+
"@cdktn/commons": "0.24.0-pre.94",
|
|
53
|
+
"cdktn": "0.24.0-pre.94",
|
|
54
|
+
"@cdktn/hcl2cdk": "0.24.0-pre.94"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"src/**/*.{ts,tsx}": "tsc-files ambient.d.ts --noEmit"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"prettier": "2.8.8",
|
|
66
66
|
"tsc-files": "1.1.4",
|
|
67
67
|
"typescript": "^5.0.4",
|
|
68
|
-
"@cdktn/provider-generator": "0.24.0-pre.
|
|
68
|
+
"@cdktn/provider-generator": "0.24.0-pre.94"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=22.19.0"
|
|
@@ -28,7 +28,13 @@ exports.post = (ctx) => {
|
|
|
28
28
|
throw new Error(`missing context "npm_cdktf"`);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// Mirrors the `constructs` peer dependency range declared by the cdktn
|
|
32
|
+
// package. 10.8.0 is excluded because it dropped `jsii.tsc.outDir` from its
|
|
33
|
+
// package.json, which jsii-rosetta needs to map the shipped .d.ts files back
|
|
34
|
+
// to the symbol ids in the assembly; without it `cdktn convert` emits
|
|
35
|
+
// unresolved Java/Go imports (`constructs.Construct` instead of
|
|
36
|
+
// `software.constructs.Construct`). Keep both ranges in sync.
|
|
37
|
+
installDeps([npm_cdktf, `constructs@>=10.6.0 <10.8.0`], false, silent);
|
|
32
38
|
installDeps(
|
|
33
39
|
["@types/node", "typescript@5.x", "jest", "@types/jest", "ts-jest", "ts-node"],
|
|
34
40
|
true,
|
|
@@ -46,7 +52,13 @@ function installDeps(deps, isDev, silent) {
|
|
|
46
52
|
const env = Object.assign({}, process.env);
|
|
47
53
|
env["NODE_ENV"] = "development";
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
// Each spec is double-quoted so ranges containing spaces or shell
|
|
56
|
+
// metacharacters survive the shell. Double quotes (rather than single) work
|
|
57
|
+
// on both POSIX shells and cmd.exe, where an unquoted `^` is the escape
|
|
58
|
+
// character and would silently turn `cdktn@^1.2.3` into `cdktn@1.2.3`.
|
|
59
|
+
const specs = deps.map((dep) => `"${dep}"`).join(" ");
|
|
60
|
+
|
|
61
|
+
execSync(`npm install ${devDep} ${specs}`, {
|
|
50
62
|
stdio: silent ? "ignore" : "inherit",
|
|
51
63
|
env,
|
|
52
64
|
});
|