@cdktn/cli-core 0.23.2 → 0.23.4
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/LICENSE +355 -0
- package/build/lib/cdktf-stack.d.ts +6 -1
- package/build/lib/cdktf-stack.d.ts.map +1 -1
- package/build/lib/cdktf-stack.js +18 -1
- package/build/lib/dependencies/dependency-manager.js +2 -2
- package/build/lib/dependencies/package-manager.js +27 -13
- package/build/lib/init.d.ts +1 -1
- package/build/lib/init.d.ts.map +1 -1
- package/build/lib/init.js +22 -4
- package/build/lib/installed-binary-check.d.ts +12 -0
- package/build/lib/installed-binary-check.d.ts.map +1 -0
- package/build/lib/installed-binary-check.js +62 -0
- package/build/lib/models/deploy-machine.d.ts +10 -0
- package/build/lib/models/deploy-machine.d.ts.map +1 -1
- package/build/lib/models/deploy-machine.js +42 -7
- package/build/lib/models/terraform-cli.d.ts +0 -1
- package/build/lib/models/terraform-cli.d.ts.map +1 -1
- package/build/lib/models/terraform.d.ts +1 -0
- package/build/lib/models/terraform.d.ts.map +1 -1
- package/build/lib/models/terraform.js +1 -1
- package/build/lib/synth-stack.d.ts +0 -1
- package/build/lib/synth-stack.d.ts.map +1 -1
- package/build/lib/watch.d.ts +0 -1
- package/build/lib/watch.d.ts.map +1 -1
- package/package.json +20 -19
- package/templates/csharp/TestProgram.cs +1 -1
- package/templates/csharp/cdktf.json +4 -0
- package/templates/csharp/help +7 -7
- package/templates/go/cdktf.json +4 -0
- package/templates/go/help +1 -1
- package/templates/go/main_test.go +1 -1
- package/templates/java/cdktf.json +4 -0
- package/templates/java/gradlew +0 -0
- package/templates/java/help +2 -2
- package/templates/java/src/test/java/com/company/app/MainTest.java +1 -1
- package/templates/python/cdktf.json +4 -0
- package/templates/python/help +1 -1
- package/templates/python/main-test.py +1 -1
- package/templates/python-pip/cdktf.json +4 -0
- package/templates/python-pip/help +1 -1
- package/templates/python-pip/main-test.py +1 -1
- package/templates/typescript/__tests__/main-test.ts +1 -1
- package/templates/typescript/cdktf.json +4 -0
package/package.json
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdktn/cli-core",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.4",
|
|
4
4
|
"description": "CDK Terrain CLI Core, meant for internal use only",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"watch": "tsc -w",
|
|
8
|
-
"watch-preserve-output": "tsc -w --preserveWatchOutput",
|
|
9
|
-
"test:update": "jest -u --maxWorkers=50%",
|
|
10
|
-
"package": "./package.sh",
|
|
11
|
-
"dist-clean": "rm -rf dist",
|
|
12
|
-
"package:js": "./package.sh"
|
|
13
|
-
},
|
|
14
5
|
"main": "build/lib/index.js",
|
|
15
6
|
"types": "build/lib/index.d.ts",
|
|
16
7
|
"nx": {
|
|
@@ -38,12 +29,7 @@
|
|
|
38
29
|
],
|
|
39
30
|
"license": "MPL-2.0",
|
|
40
31
|
"dependencies": {
|
|
41
|
-
"@cdktn/commons": "0.23.2",
|
|
42
|
-
"@cdktn/hcl-tools": "0.23.2",
|
|
43
|
-
"@cdktn/hcl2cdk": "0.23.2",
|
|
44
|
-
"@cdktn/provider-schema": "0.23.2",
|
|
45
32
|
"@sentry/node": "7.120.4",
|
|
46
|
-
"cdktn": "0.23.2",
|
|
47
33
|
"chalk": "4.1.2",
|
|
48
34
|
"chokidar": "3.6.0",
|
|
49
35
|
"ci-info": "3.9.0",
|
|
@@ -61,21 +47,36 @@
|
|
|
61
47
|
"strip-ansi": "6.0.1",
|
|
62
48
|
"xml-js": "1.6.11",
|
|
63
49
|
"xstate": "4.38.3",
|
|
64
|
-
"zod": "3.25.76"
|
|
50
|
+
"zod": "3.25.76",
|
|
51
|
+
"@cdktn/hcl-tools": "0.23.4",
|
|
52
|
+
"@cdktn/hcl2cdk": "0.23.4",
|
|
53
|
+
"@cdktn/commons": "0.23.4",
|
|
54
|
+
"cdktn": "0.23.4",
|
|
55
|
+
"@cdktn/provider-schema": "0.23.4"
|
|
65
56
|
},
|
|
66
57
|
"lint-staged": {
|
|
67
58
|
"src/**/*.{ts,tsx}": "tsc-files ambient.d.ts --noEmit"
|
|
68
59
|
},
|
|
69
60
|
"devDependencies": {
|
|
70
|
-
"@cdktn/provider-generator": "0.23.2",
|
|
71
61
|
"@types/cross-spawn": "6.0.6",
|
|
72
62
|
"@types/fs-extra": "8.1.5",
|
|
63
|
+
"@types/minimatch": "5.1.2",
|
|
73
64
|
"@types/node": "20.19.1",
|
|
74
65
|
"@types/node-fetch": "2.6.13",
|
|
75
66
|
"@types/semver": "7.7.1",
|
|
76
67
|
"nock": "13.5.6",
|
|
77
68
|
"prettier": "2.8.8",
|
|
78
69
|
"tsc-files": "1.1.4",
|
|
79
|
-
"typescript": "5.
|
|
70
|
+
"typescript": "^5.0.0",
|
|
71
|
+
"@cdktn/provider-generator": "0.23.4"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "tsc",
|
|
75
|
+
"watch": "tsc -w",
|
|
76
|
+
"watch-preserve-output": "tsc -w --preserveWatchOutput",
|
|
77
|
+
"test:update": "jest -u --maxWorkers=50%",
|
|
78
|
+
"package": "./package.sh",
|
|
79
|
+
"dist-clean": "rm -rf dist",
|
|
80
|
+
"package:js": "./package.sh"
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
+
}
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
"app": "dotnet run -p MyTerraformStack.csproj",
|
|
4
4
|
"projectId": "{{projectId}}",
|
|
5
5
|
"sendCrashReports": "{{sendCrashReports}}",
|
|
6
|
+
"targetVersions": {
|
|
7
|
+
"terraform": ">=1.5.7",
|
|
8
|
+
"opentofu": ">=1.6.0"
|
|
9
|
+
},
|
|
6
10
|
"terraformProviders": [],
|
|
7
11
|
"terraformModules": [],
|
|
8
12
|
"context": {
|
package/templates/csharp/help
CHANGED
|
@@ -27,15 +27,15 @@ Use Providers:
|
|
|
27
27
|
|
|
28
28
|
cdktn provider add "aws@~>3.0" null kreuzwerker/docker
|
|
29
29
|
|
|
30
|
-
You can find all prebuilt providers on nuget: https://www.nuget.org/packages?q=
|
|
30
|
+
You can find all prebuilt providers on nuget: https://www.nuget.org/packages?q=Io.Cdktn.Providers
|
|
31
31
|
You can also install these providers directly through dotnet:
|
|
32
32
|
|
|
33
|
-
dotnet add package
|
|
34
|
-
dotnet add package
|
|
35
|
-
dotnet add package
|
|
36
|
-
dotnet add package
|
|
37
|
-
dotnet add package
|
|
38
|
-
dotnet add package
|
|
33
|
+
dotnet add package Io.Cdktn.Providers.Aws
|
|
34
|
+
dotnet add package Io.Cdktn.Providers.Google
|
|
35
|
+
dotnet add package Io.Cdktn.Providers.Azurerm
|
|
36
|
+
dotnet add package Io.Cdktn.Providers.Docker
|
|
37
|
+
dotnet add package Io.Cdktn.Providers.Github
|
|
38
|
+
dotnet add package Io.Cdktn.Providers.Null
|
|
39
39
|
|
|
40
40
|
You can also build any module or provider locally. Learn more: https://cdktn.io/docs/concepts/providers
|
|
41
41
|
|
package/templates/go/cdktf.json
CHANGED
package/templates/go/help
CHANGED
|
@@ -29,4 +29,4 @@ Use Providers:
|
|
|
29
29
|
|
|
30
30
|
Learn more: https://cdktn.io/docs/concepts/providers
|
|
31
31
|
|
|
32
|
-
========================================================================================================
|
|
32
|
+
========================================================================================================
|
package/templates/java/gradlew
CHANGED
|
File without changes
|
package/templates/java/help
CHANGED
|
@@ -27,9 +27,9 @@ Use Providers:
|
|
|
27
27
|
|
|
28
28
|
cdktn provider add "aws@~>3.0" null kreuzwerker/docker
|
|
29
29
|
|
|
30
|
-
All prebuilt providers are available on Maven Central: https://mvnrepository.com/artifact/
|
|
30
|
+
All prebuilt providers are available on Maven Central: https://mvnrepository.com/artifact/io.cdktn
|
|
31
31
|
You can also add these providers directly to your pom.xml file.
|
|
32
32
|
|
|
33
33
|
You can also build any module or provider locally. Learn more: https://cdktn.io/docs/concepts/providers
|
|
34
34
|
|
|
35
|
-
========================================================================================================
|
|
35
|
+
========================================================================================================
|
|
@@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test;
|
|
|
3
3
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
4
4
|
|
|
5
5
|
// The tests below are example tests, you can find more information at
|
|
6
|
-
// https://
|
|
6
|
+
// https://cdktn.io/docs/test/unit-tests
|
|
7
7
|
public class MainTest {
|
|
8
8
|
|
|
9
9
|
@Test
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
"app": "pipenv run python main.py",
|
|
4
4
|
"projectId": "{{projectId}}",
|
|
5
5
|
"sendCrashReports": "{{sendCrashReports}}",
|
|
6
|
+
"targetVersions": {
|
|
7
|
+
"terraform": ">=1.5.7",
|
|
8
|
+
"opentofu": ">=1.6.0"
|
|
9
|
+
},
|
|
6
10
|
"terraformProviders": [],
|
|
7
11
|
"terraformModules": [],
|
|
8
12
|
"codeMakerOutput": "imports",
|
package/templates/python/help
CHANGED
|
@@ -39,4 +39,4 @@ Use Providers:
|
|
|
39
39
|
|
|
40
40
|
You can also build any module or provider locally. Learn more: https://cdktn.io/docs/concepts/providers
|
|
41
41
|
|
|
42
|
-
========================================================================================================
|
|
42
|
+
========================================================================================================
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
"app": "python3 ./main.py",
|
|
4
4
|
"projectId": "{{projectId}}",
|
|
5
5
|
"sendCrashReports": "{{sendCrashReports}}",
|
|
6
|
+
"targetVersions": {
|
|
7
|
+
"terraform": ">=1.5.7",
|
|
8
|
+
"opentofu": ">=1.6.0"
|
|
9
|
+
},
|
|
6
10
|
"terraformProviders": [],
|
|
7
11
|
"terraformModules": [],
|
|
8
12
|
"codeMakerOutput": "imports",
|
|
@@ -32,4 +32,4 @@ Use Providers:
|
|
|
32
32
|
|
|
33
33
|
You can also build any module or provider locally. Learn more: https://cdktn.io/docs/concepts/providers
|
|
34
34
|
|
|
35
|
-
========================================================================================================
|
|
35
|
+
========================================================================================================
|
|
@@ -5,7 +5,7 @@ import "cdktn/lib/testing/adapters/jest"; // Load types for expect matchers
|
|
|
5
5
|
|
|
6
6
|
describe("My CDKTN Application", () => {
|
|
7
7
|
// The tests below are example tests, you can find more information at
|
|
8
|
-
// https://
|
|
8
|
+
// https://cdktn.io/docs/test/unit-tests
|
|
9
9
|
it.todo("should be tested");
|
|
10
10
|
|
|
11
11
|
// // All Unit tests test the synthesised terraform code, it does not create real-world resources
|