Skip to content

Commit ca0e64a

Browse files
author
bweigel
committed
add package task
1 parent 3509917 commit ca0e64a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.projen/tasks.json

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const project = new awscdk.AwsCdkTypeScriptApp({
6060
prettier: true,
6161
ignorePatterns: ['**/node_modules/', '*.d.ts', 'build', 'cdk.out', '**/__snapshots__', 'example'],
6262
},
63-
6463
docgen: false,
6564
licensed: true,
6665
// see https://github.com/aws/aws-cdk/issues/20622#issuecomment-1300400594
@@ -136,6 +135,9 @@ project.addTask(`bundle:binary`, {
136135
},
137136
],
138137
});
138+
project.packageTask.prependExec(`mkdir -p ./dist`);
139+
project.packageTask.prependExec(`rm -rf ./dist`);
140+
project.packageTask.exec(`zip -r ../../dist/tesseract-al2-x86.zip .`, { cwd: './ready-to-use/amazonlinux-2' });
139141
project.addTask('upgrade:ci:py', {
140142
steps: [
141143
{

0 commit comments

Comments
 (0)