From 235f86b72f2973963bd0cbcaddfe074d9820f2d7 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Fri, 31 May 2019 00:11:37 +0300 Subject: [PATCH] fix(cli): remove support for applets BREAKING CHANGE: applets are no longer supported as an app type, use "decdk" instead. --- packages/aws-cdk/lib/api/cxapp/exec.ts | 10 ---------- packages/aws-cdk/package.json | 1 - 2 files changed, 11 deletions(-) diff --git a/packages/aws-cdk/lib/api/cxapp/exec.ts b/packages/aws-cdk/lib/api/cxapp/exec.ts index 642bf11c7fcf0..c0d987a65d4f6 100644 --- a/packages/aws-cdk/lib/api/cxapp/exec.ts +++ b/packages/aws-cdk/lib/api/cxapp/exec.ts @@ -147,14 +147,6 @@ function appToArray(app: any) { type CommandGenerator = (file: string) => string[]; -/** - * Direct execution of a YAML file, assume that we're deploying an Applet - */ -function executeApplet(appletFile: string): string[] { - const appletBinary = path.resolve(require.resolve('@aws-cdk/applet-js')); - return [process.execPath, appletBinary, appletFile]; -} - /** * Execute the given file with the same 'node' process as is running the current process */ @@ -166,8 +158,6 @@ function executeNode(scriptFile: string): string[] { * Mapping of extensions to command-line generators */ const EXTENSION_MAP = new Map([ - ['.yml', executeApplet], - ['.yaml', executeApplet], ['.js', executeNode], ]); diff --git a/packages/aws-cdk/package.json b/packages/aws-cdk/package.json index 6a2e8e46adb73..0f15cd7e587a5 100644 --- a/packages/aws-cdk/package.json +++ b/packages/aws-cdk/package.json @@ -51,7 +51,6 @@ "sinon": "^7.3.1" }, "dependencies": { - "@aws-cdk/applet-js": "^0.33.0", "@aws-cdk/cloudformation-diff": "^0.33.0", "@aws-cdk/cx-api": "^0.33.0", "@aws-cdk/region-info": "^0.33.0",