@cdktn/cli-core 0.24.0-pre.11 → 0.24.0-pre.24

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.
@@ -14,21 +14,21 @@ declare const remote: z.ZodObject<{
14
14
  prefix?: string | undefined;
15
15
  }>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ organization?: string | undefined;
18
+ hostname?: string | undefined;
17
19
  token?: string | undefined;
18
20
  workspaces?: {
19
21
  name?: string | undefined;
20
22
  prefix?: string | undefined;
21
23
  } | undefined;
24
+ }, {
22
25
  organization?: string | undefined;
23
26
  hostname?: string | undefined;
24
- }, {
25
27
  token?: string | undefined;
26
28
  workspaces?: {
27
29
  name?: string | undefined;
28
30
  prefix?: string | undefined;
29
31
  } | undefined;
30
- organization?: string | undefined;
31
- hostname?: string | undefined;
32
32
  }>;
33
33
  export declare const terraformJsonSchema: z.ZodObject<{
34
34
  "//": z.ZodOptional<z.ZodObject<{
@@ -94,21 +94,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
94
94
  prefix?: string | undefined;
95
95
  }>>>;
96
96
  }, "strip", z.ZodTypeAny, {
97
+ organization?: string | undefined;
98
+ hostname?: string | undefined;
97
99
  token?: string | undefined;
98
100
  workspaces?: {
99
101
  name?: string | undefined;
100
102
  prefix?: string | undefined;
101
103
  } | undefined;
104
+ }, {
102
105
  organization?: string | undefined;
103
106
  hostname?: string | undefined;
104
- }, {
105
107
  token?: string | undefined;
106
108
  workspaces?: {
107
109
  name?: string | undefined;
108
110
  prefix?: string | undefined;
109
111
  } | undefined;
110
- organization?: string | undefined;
111
- hostname?: string | undefined;
112
112
  }>>;
113
113
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
114
114
  remote: z.ZodOptional<z.ZodObject<{
@@ -126,21 +126,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
126
126
  prefix?: string | undefined;
127
127
  }>>>;
128
128
  }, "strip", z.ZodTypeAny, {
129
+ organization?: string | undefined;
130
+ hostname?: string | undefined;
129
131
  token?: string | undefined;
130
132
  workspaces?: {
131
133
  name?: string | undefined;
132
134
  prefix?: string | undefined;
133
135
  } | undefined;
136
+ }, {
134
137
  organization?: string | undefined;
135
138
  hostname?: string | undefined;
136
- }, {
137
139
  token?: string | undefined;
138
140
  workspaces?: {
139
141
  name?: string | undefined;
140
142
  prefix?: string | undefined;
141
143
  } | undefined;
142
- organization?: string | undefined;
143
- hostname?: string | undefined;
144
144
  }>>;
145
145
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
146
146
  remote: z.ZodOptional<z.ZodObject<{
@@ -158,21 +158,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
158
158
  prefix?: string | undefined;
159
159
  }>>>;
160
160
  }, "strip", z.ZodTypeAny, {
161
+ organization?: string | undefined;
162
+ hostname?: string | undefined;
161
163
  token?: string | undefined;
162
164
  workspaces?: {
163
165
  name?: string | undefined;
164
166
  prefix?: string | undefined;
165
167
  } | undefined;
168
+ }, {
166
169
  organization?: string | undefined;
167
170
  hostname?: string | undefined;
168
- }, {
169
171
  token?: string | undefined;
170
172
  workspaces?: {
171
173
  name?: string | undefined;
172
174
  prefix?: string | undefined;
173
175
  } | undefined;
174
- organization?: string | undefined;
175
- hostname?: string | undefined;
176
176
  }>>;
177
177
  }, z.ZodTypeAny, "passthrough">>>;
178
178
  cloud: z.ZodOptional<z.ZodObject<{
@@ -255,21 +255,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
255
255
  prefix?: string | undefined;
256
256
  }>>>;
257
257
  }, "strip", z.ZodTypeAny, {
258
+ organization?: string | undefined;
259
+ hostname?: string | undefined;
258
260
  token?: string | undefined;
259
261
  workspaces?: {
260
262
  name?: string | undefined;
261
263
  prefix?: string | undefined;
262
264
  } | undefined;
265
+ }, {
263
266
  organization?: string | undefined;
264
267
  hostname?: string | undefined;
265
- }, {
266
268
  token?: string | undefined;
267
269
  workspaces?: {
268
270
  name?: string | undefined;
269
271
  prefix?: string | undefined;
270
272
  } | undefined;
271
- organization?: string | undefined;
272
- hostname?: string | undefined;
273
273
  }>>;
274
274
  }, z.ZodTypeAny, "passthrough"> | undefined;
275
275
  cloud?: z.objectOutputType<{
@@ -312,21 +312,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
312
312
  prefix?: string | undefined;
313
313
  }>>>;
314
314
  }, "strip", z.ZodTypeAny, {
315
+ organization?: string | undefined;
316
+ hostname?: string | undefined;
315
317
  token?: string | undefined;
316
318
  workspaces?: {
317
319
  name?: string | undefined;
318
320
  prefix?: string | undefined;
319
321
  } | undefined;
322
+ }, {
320
323
  organization?: string | undefined;
321
324
  hostname?: string | undefined;
322
- }, {
323
325
  token?: string | undefined;
324
326
  workspaces?: {
325
327
  name?: string | undefined;
326
328
  prefix?: string | undefined;
327
329
  } | undefined;
328
- organization?: string | undefined;
329
- hostname?: string | undefined;
330
330
  }>>;
331
331
  }, z.ZodTypeAny, "passthrough"> | undefined;
332
332
  cloud?: z.objectInputType<{
@@ -420,21 +420,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
420
420
  prefix?: string | undefined;
421
421
  }>>>;
422
422
  }, "strip", z.ZodTypeAny, {
423
+ organization?: string | undefined;
424
+ hostname?: string | undefined;
423
425
  token?: string | undefined;
424
426
  workspaces?: {
425
427
  name?: string | undefined;
426
428
  prefix?: string | undefined;
427
429
  } | undefined;
430
+ }, {
428
431
  organization?: string | undefined;
429
432
  hostname?: string | undefined;
430
- }, {
431
433
  token?: string | undefined;
432
434
  workspaces?: {
433
435
  name?: string | undefined;
434
436
  prefix?: string | undefined;
435
437
  } | undefined;
436
- organization?: string | undefined;
437
- hostname?: string | undefined;
438
438
  }>>;
439
439
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
440
440
  remote: z.ZodOptional<z.ZodObject<{
@@ -452,21 +452,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
452
452
  prefix?: string | undefined;
453
453
  }>>>;
454
454
  }, "strip", z.ZodTypeAny, {
455
+ organization?: string | undefined;
456
+ hostname?: string | undefined;
455
457
  token?: string | undefined;
456
458
  workspaces?: {
457
459
  name?: string | undefined;
458
460
  prefix?: string | undefined;
459
461
  } | undefined;
462
+ }, {
460
463
  organization?: string | undefined;
461
464
  hostname?: string | undefined;
462
- }, {
463
465
  token?: string | undefined;
464
466
  workspaces?: {
465
467
  name?: string | undefined;
466
468
  prefix?: string | undefined;
467
469
  } | undefined;
468
- organization?: string | undefined;
469
- hostname?: string | undefined;
470
470
  }>>;
471
471
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
472
472
  remote: z.ZodOptional<z.ZodObject<{
@@ -484,21 +484,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
484
484
  prefix?: string | undefined;
485
485
  }>>>;
486
486
  }, "strip", z.ZodTypeAny, {
487
+ organization?: string | undefined;
488
+ hostname?: string | undefined;
487
489
  token?: string | undefined;
488
490
  workspaces?: {
489
491
  name?: string | undefined;
490
492
  prefix?: string | undefined;
491
493
  } | undefined;
494
+ }, {
492
495
  organization?: string | undefined;
493
496
  hostname?: string | undefined;
494
- }, {
495
497
  token?: string | undefined;
496
498
  workspaces?: {
497
499
  name?: string | undefined;
498
500
  prefix?: string | undefined;
499
501
  } | undefined;
500
- organization?: string | undefined;
501
- hostname?: string | undefined;
502
502
  }>>;
503
503
  }, z.ZodTypeAny, "passthrough">>>;
504
504
  cloud: z.ZodOptional<z.ZodObject<{
@@ -581,21 +581,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
581
581
  prefix?: string | undefined;
582
582
  }>>>;
583
583
  }, "strip", z.ZodTypeAny, {
584
+ organization?: string | undefined;
585
+ hostname?: string | undefined;
584
586
  token?: string | undefined;
585
587
  workspaces?: {
586
588
  name?: string | undefined;
587
589
  prefix?: string | undefined;
588
590
  } | undefined;
591
+ }, {
589
592
  organization?: string | undefined;
590
593
  hostname?: string | undefined;
591
- }, {
592
594
  token?: string | undefined;
593
595
  workspaces?: {
594
596
  name?: string | undefined;
595
597
  prefix?: string | undefined;
596
598
  } | undefined;
597
- organization?: string | undefined;
598
- hostname?: string | undefined;
599
599
  }>>;
600
600
  }, z.ZodTypeAny, "passthrough"> | undefined;
601
601
  cloud?: z.objectOutputType<{
@@ -638,21 +638,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
638
638
  prefix?: string | undefined;
639
639
  }>>>;
640
640
  }, "strip", z.ZodTypeAny, {
641
+ organization?: string | undefined;
642
+ hostname?: string | undefined;
641
643
  token?: string | undefined;
642
644
  workspaces?: {
643
645
  name?: string | undefined;
644
646
  prefix?: string | undefined;
645
647
  } | undefined;
648
+ }, {
646
649
  organization?: string | undefined;
647
650
  hostname?: string | undefined;
648
- }, {
649
651
  token?: string | undefined;
650
652
  workspaces?: {
651
653
  name?: string | undefined;
652
654
  prefix?: string | undefined;
653
655
  } | undefined;
654
- organization?: string | undefined;
655
- hostname?: string | undefined;
656
656
  }>>;
657
657
  }, z.ZodTypeAny, "passthrough"> | undefined;
658
658
  cloud?: z.objectInputType<{
@@ -746,21 +746,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
746
746
  prefix?: string | undefined;
747
747
  }>>>;
748
748
  }, "strip", z.ZodTypeAny, {
749
+ organization?: string | undefined;
750
+ hostname?: string | undefined;
749
751
  token?: string | undefined;
750
752
  workspaces?: {
751
753
  name?: string | undefined;
752
754
  prefix?: string | undefined;
753
755
  } | undefined;
756
+ }, {
754
757
  organization?: string | undefined;
755
758
  hostname?: string | undefined;
756
- }, {
757
759
  token?: string | undefined;
758
760
  workspaces?: {
759
761
  name?: string | undefined;
760
762
  prefix?: string | undefined;
761
763
  } | undefined;
762
- organization?: string | undefined;
763
- hostname?: string | undefined;
764
764
  }>>;
765
765
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
766
766
  remote: z.ZodOptional<z.ZodObject<{
@@ -778,21 +778,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
778
778
  prefix?: string | undefined;
779
779
  }>>>;
780
780
  }, "strip", z.ZodTypeAny, {
781
+ organization?: string | undefined;
782
+ hostname?: string | undefined;
781
783
  token?: string | undefined;
782
784
  workspaces?: {
783
785
  name?: string | undefined;
784
786
  prefix?: string | undefined;
785
787
  } | undefined;
788
+ }, {
786
789
  organization?: string | undefined;
787
790
  hostname?: string | undefined;
788
- }, {
789
791
  token?: string | undefined;
790
792
  workspaces?: {
791
793
  name?: string | undefined;
792
794
  prefix?: string | undefined;
793
795
  } | undefined;
794
- organization?: string | undefined;
795
- hostname?: string | undefined;
796
796
  }>>;
797
797
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
798
798
  remote: z.ZodOptional<z.ZodObject<{
@@ -810,21 +810,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
810
810
  prefix?: string | undefined;
811
811
  }>>>;
812
812
  }, "strip", z.ZodTypeAny, {
813
+ organization?: string | undefined;
814
+ hostname?: string | undefined;
813
815
  token?: string | undefined;
814
816
  workspaces?: {
815
817
  name?: string | undefined;
816
818
  prefix?: string | undefined;
817
819
  } | undefined;
820
+ }, {
818
821
  organization?: string | undefined;
819
822
  hostname?: string | undefined;
820
- }, {
821
823
  token?: string | undefined;
822
824
  workspaces?: {
823
825
  name?: string | undefined;
824
826
  prefix?: string | undefined;
825
827
  } | undefined;
826
- organization?: string | undefined;
827
- hostname?: string | undefined;
828
828
  }>>;
829
829
  }, z.ZodTypeAny, "passthrough">>>;
830
830
  cloud: z.ZodOptional<z.ZodObject<{
@@ -907,21 +907,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
907
907
  prefix?: string | undefined;
908
908
  }>>>;
909
909
  }, "strip", z.ZodTypeAny, {
910
+ organization?: string | undefined;
911
+ hostname?: string | undefined;
910
912
  token?: string | undefined;
911
913
  workspaces?: {
912
914
  name?: string | undefined;
913
915
  prefix?: string | undefined;
914
916
  } | undefined;
917
+ }, {
915
918
  organization?: string | undefined;
916
919
  hostname?: string | undefined;
917
- }, {
918
920
  token?: string | undefined;
919
921
  workspaces?: {
920
922
  name?: string | undefined;
921
923
  prefix?: string | undefined;
922
924
  } | undefined;
923
- organization?: string | undefined;
924
- hostname?: string | undefined;
925
925
  }>>;
926
926
  }, z.ZodTypeAny, "passthrough"> | undefined;
927
927
  cloud?: z.objectOutputType<{
@@ -964,21 +964,21 @@ export declare const terraformJsonSchema: z.ZodObject<{
964
964
  prefix?: string | undefined;
965
965
  }>>>;
966
966
  }, "strip", z.ZodTypeAny, {
967
+ organization?: string | undefined;
968
+ hostname?: string | undefined;
967
969
  token?: string | undefined;
968
970
  workspaces?: {
969
971
  name?: string | undefined;
970
972
  prefix?: string | undefined;
971
973
  } | undefined;
974
+ }, {
972
975
  organization?: string | undefined;
973
976
  hostname?: string | undefined;
974
- }, {
975
977
  token?: string | undefined;
976
978
  workspaces?: {
977
979
  name?: string | undefined;
978
980
  prefix?: string | undefined;
979
981
  } | undefined;
980
- organization?: string | undefined;
981
- hostname?: string | undefined;
982
982
  }>>;
983
983
  }, z.ZodTypeAny, "passthrough"> | undefined;
984
984
  cloud?: z.objectInputType<{
package/jest.config.js CHANGED
@@ -2,19 +2,33 @@
2
2
  * Copyright (c) HashiCorp, Inc.
3
3
  * SPDX-License-Identifier: MPL-2.0
4
4
  */
5
+ /* eslint-disable */
6
+ const { readFileSync } = require('fs');
7
+
8
+ const swcJestConfig = JSON.parse(
9
+ readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8'),
10
+ );
11
+
12
+ swcJestConfig.swcrc = false;
5
13
 
6
14
  module.exports = {
7
- roots: [
8
- "<rootDir>"
9
- ],
10
- testMatch: ['**/*.test.ts', '**/*.test.tsx'],
15
+ displayName: '@cdktn/cli-core',
16
+ preset: '../../../jest.preset.js',
17
+ rootDir: '.',
18
+ roots: ['<rootDir>'],
11
19
  transform: {
12
- "^.+\\.tsx?$": "ts-jest"
20
+ '^.+\\.[tj]sx?$': ['@swc/jest', swcJestConfig],
13
21
  },
14
- moduleFileExtensions: [
15
- "js",
16
- "ts",
17
- "tsx"
22
+ // sscaff (in node_modules) ships both .ts source and compiled .js — prefer
23
+ // .js so jest doesn't try to parse the untransformed source.
24
+ moduleFileExtensions: ['js', 'ts', 'tsx'],
25
+ // sscaff template hooks under templates/ rely on sloppy-mode globals
26
+ // (e.g. `template = readFileSync(...)`) — let node's CJS loader handle them
27
+ // instead of putting them through swc-jest's strict-mode transform.
28
+ transformIgnorePatterns: [
29
+ '/node_modules/',
30
+ '<rootDir>/templates/',
18
31
  ],
19
- prettierPath: "<rootDir>/node_modules/prettier",
20
- }
32
+ prettierPath: '<rootDir>/node_modules/prettier',
33
+ coverageDirectory: 'test-output/jest/coverage',
34
+ };
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@cdktn/cli-core",
3
- "version": "0.24.0-pre.11",
3
+ "version": "0.24.0-pre.24",
4
4
  "description": "CDK Terrain CLI Core, meant for internal use only",
5
5
  "scripts": {
6
6
  "build": "tsc",
7
7
  "watch": "tsc -w",
8
8
  "watch-preserve-output": "tsc -w --preserveWatchOutput",
9
- "pretest": "yarn build",
10
- "pretest:ci": "yarn build",
11
- "test": "jest",
12
- "test:ci": "jest --ci",
13
9
  "test:update": "jest -u --maxWorkers=50%",
14
- "jest-watch": "jest --watch",
15
10
  "package": "./package.sh",
16
11
  "dist-clean": "rm -rf dist",
17
12
  "package:js": "./package.sh"
18
13
  },
19
14
  "main": "build/lib/index.js",
20
15
  "types": "build/lib/index.d.ts",
16
+ "nx": {
17
+ "tags": [
18
+ "unit-test:terraform"
19
+ ]
20
+ },
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
@@ -38,12 +38,12 @@
38
38
  ],
39
39
  "license": "MPL-2.0",
40
40
  "dependencies": {
41
- "@cdktn/commons": "0.24.0-pre.11",
42
- "@cdktn/hcl-tools": "0.24.0-pre.11",
43
- "@cdktn/hcl2cdk": "0.24.0-pre.11",
44
- "@cdktn/provider-schema": "0.24.0-pre.11",
41
+ "@cdktn/commons": "0.24.0-pre.24",
42
+ "@cdktn/hcl-tools": "0.24.0-pre.24",
43
+ "@cdktn/hcl2cdk": "0.24.0-pre.24",
44
+ "@cdktn/provider-schema": "0.24.0-pre.24",
45
45
  "@sentry/node": "7.120.4",
46
- "cdktn": "0.24.0-pre.11",
46
+ "cdktn": "0.24.0-pre.24",
47
47
  "chalk": "4.1.2",
48
48
  "chokidar": "3.6.0",
49
49
  "ci-info": "3.9.0",
@@ -67,17 +67,14 @@
67
67
  "src/**/*.{ts,tsx}": "tsc-files ambient.d.ts --noEmit"
68
68
  },
69
69
  "devDependencies": {
70
- "@cdktn/provider-generator": "0.24.0-pre.11",
70
+ "@cdktn/provider-generator": "0.24.0-pre.24",
71
71
  "@types/cross-spawn": "6.0.6",
72
72
  "@types/fs-extra": "8.1.5",
73
- "@types/jest": "30.0.0",
74
73
  "@types/node": "20.19.1",
75
74
  "@types/node-fetch": "2.6.13",
76
75
  "@types/semver": "7.7.1",
77
- "jest": "^30.3.0",
78
76
  "nock": "13.5.6",
79
77
  "prettier": "2.8.8",
80
- "ts-jest": "29.4.9",
81
78
  "tsc-files": "1.1.4",
82
79
  "typescript": "5.4.5"
83
80
  }