Skip to content

Commit 5041ed5

Browse files
committed
chore: added v2 shim
1 parent 8a6f3c9 commit 5041ed5

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.github/scripts/release_patch_package_json.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ const betaPackages = [];
8585
files,
8686
type,
8787
scripts: {
88-
postinstall:
89-
'console.warn("This is a pre-release version of Powertools for AWS (TypeScript) provided for evaluation only. Do not use in production.")',
88+
postinstall: `echo 'WARNING: This is a pre-release version of Powertools for AWS (TypeScript) provided for evaluation only. Do not use in production.'`,
9089
},
9190
};
9291

layers/src/layer-publisher-stack.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { StringParameter } from 'aws-cdk-lib/aws-ssm';
99
import { Construct } from 'constructs';
1010
import { execSync } from 'node:child_process';
1111
import { randomUUID } from 'node:crypto';
12-
import { writeFileSync } from 'node:fs';
1312
import { join, resolve, sep } from 'node:path';
1413

1514
export interface LayerPublisherStackProps extends StackProps {
@@ -145,13 +144,6 @@ export class LayerPublisherStack extends Stack {
145144
);
146145
}
147146

148-
// Phase 0: Remove after pre-release
149-
// we need this because while we are in pre-release, the version is not updated normally on this branch
150-
writeFileSync(
151-
join(projectRoot, 'v2.json'),
152-
JSON.stringify({ iteration: 0 })
153-
);
154-
155147
// Phase 1: Cleanup & create tmp folder
156148
execSync(
157149
[

v2.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"iteration": 0
3+
}

0 commit comments

Comments
 (0)