Skip to content

Commit 0997ee2

Browse files
author
Elad Ben-Israel
authored
fix(cli): remove support for applets (#2691)
BREAKING CHANGE: applets are no longer supported as an app type, use "decdk" instead.
1 parent 04d37af commit 0997ee2

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

packages/aws-cdk/lib/api/cxapp/exec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,6 @@ function appToArray(app: any) {
147147

148148
type CommandGenerator = (file: string) => string[];
149149

150-
/**
151-
* Direct execution of a YAML file, assume that we're deploying an Applet
152-
*/
153-
function executeApplet(appletFile: string): string[] {
154-
const appletBinary = path.resolve(require.resolve('@aws-cdk/applet-js'));
155-
return [process.execPath, appletBinary, appletFile];
156-
}
157-
158150
/**
159151
* Execute the given file with the same 'node' process as is running the current process
160152
*/
@@ -166,8 +158,6 @@ function executeNode(scriptFile: string): string[] {
166158
* Mapping of extensions to command-line generators
167159
*/
168160
const EXTENSION_MAP = new Map<string, CommandGenerator>([
169-
['.yml', executeApplet],
170-
['.yaml', executeApplet],
171161
['.js', executeNode],
172162
]);
173163

packages/aws-cdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"sinon": "^7.3.1"
5252
},
5353
"dependencies": {
54-
"@aws-cdk/applet-js": "^0.33.0",
5554
"@aws-cdk/cloudformation-diff": "^0.33.0",
5655
"@aws-cdk/cx-api": "^0.33.0",
5756
"@aws-cdk/region-info": "^0.33.0",

0 commit comments

Comments
 (0)