Skip to content

Commit 04ca712

Browse files
committed
refactor(spec2cdk): use typewriter module and import system
1 parent d52a4a7 commit 04ca712

File tree

26 files changed

+165
-208
lines changed

26 files changed

+165
-208
lines changed

packages/@aws-cdk/custom-resource-handlers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@types/jest": "^29.5.14",
4949
"aws-sdk-client-mock": "4.1.0",
5050
"aws-sdk-client-mock-jest": "4.1.0",
51-
"@cdklabs/typewriter": "^0.0.12",
51+
"@cdklabs/typewriter": "^0.0.14",
5252
"jest": "^29.7.0",
5353
"sinon": "^9.2.4",
5454
"nock": "^13.5.6",

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/node-runtime/custom-resource-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
33
import { Construct } from "constructs";
4-
import { Stack, CustomResourceProviderBase, CustomResourceProviderOptions, determineLatestNodeRuntimeName } from "../../../core";
4+
import { CustomResourceProviderBase, CustomResourceProviderOptions, determineLatestNodeRuntimeName, Stack } from "../../../core";
55

66
export class TestProvider extends CustomResourceProviderBase {
77
/**

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/node-runtime/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
3-
import { Construct } from "constructs";
43
import * as lambda from "../../../aws-lambda";
4+
import { Construct } from "constructs";
55

66
export class TestFunction extends lambda.Function {
77
public constructor(scope: Construct, id: string, props?: lambda.FunctionOptions) {

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/node-runtime/singleton-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
3-
import { Construct } from "constructs";
43
import * as lambda from "../../../aws-lambda";
4+
import { Construct } from "constructs";
55

66
export class TestSingletonFunction extends lambda.SingletonFunction {
77
public constructor(scope: Construct, id: string, props: TestSingletonFunctionProps) {

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/python-runtime/custom-resource-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
33
import { Construct } from "constructs";
4-
import { Stack, CustomResourceProviderBase, CustomResourceProviderOptions } from "../../../core";
4+
import { CustomResourceProviderBase, CustomResourceProviderOptions, Stack } from "../../../core";
55

66
export class TestProvider extends CustomResourceProviderBase {
77
/**

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/python-runtime/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
3-
import { Construct } from "constructs";
43
import * as lambda from "../../../aws-lambda";
4+
import { Construct } from "constructs";
55

66
export class TestFunction extends lambda.Function {
77
public constructor(scope: Construct, id: string, props?: lambda.FunctionOptions) {

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/python-runtime/singleton-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
3-
import { Construct } from "constructs";
43
import * as lambda from "../../../aws-lambda";
4+
import { Construct } from "constructs";
55

66
export class TestSingletonFunction extends lambda.SingletonFunction {
77
public constructor(scope: Construct, id: string, props: TestSingletonFunctionProps) {

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/expected/singleton-function-eval-nodejs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable prettier/prettier, @stylistic/max-len */
22
import * as path from "path";
3-
import { Construct } from "constructs";
43
import * as lambda from "../../../aws-lambda";
4+
import { Construct } from "constructs";
55

66
export class EvalNodejsSingletonFunction extends lambda.SingletonFunction {
77
public constructor(scope: Construct, id: string, props: EvalNodejsSingletonFunctionProps) {

packages/@aws-cdk/custom-resource-handlers/test/custom-resources-framework/module-importer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('module importer', () => {
100100

101101
// THEN
102102
const result = fs.readFileSync(path.resolve(tmpDir, 'result.ts'), 'utf-8');
103-
const expected = '/* eslint-disable prettier/prettier, @stylistic/max-len */\nimport * as lambda from "../../../aws-lambda";\nimport { Stack, CustomResourceProviderBase } from "../../../core";';
103+
const expected = '/* eslint-disable prettier/prettier, @stylistic/max-len */\nimport * as lambda from "../../../aws-lambda";\nimport { CustomResourceProviderBase, Stack } from "../../../core";';
104104
expect(result).toEqual(expected);
105105
});
106106

packages/@aws-cdk/mixins-preview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@
661661
"@aws-cdk/service-spec-types": "^0.0.195",
662662
"@aws-cdk/spec2cdk": "0.0.0",
663663
"@cdklabs/tskb": "^0.0.4",
664-
"@cdklabs/typewriter": "^0.0.12",
664+
"@cdklabs/typewriter": "^0.0.14",
665665
"@types/jest": "^29.5.14",
666666
"aws-cdk-lib": "0.0.0",
667667
"constructs": "^10.0.0",

0 commit comments

Comments
 (0)