Skip to content

Commit a4a028e

Browse files
committed
chore: added v2 shim
1 parent a50a511 commit a4a028e

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Diff for: .github/scripts/release_patch_package_json.js

+1-2
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

Diff for: layers/src/layer-publisher-stack.ts

-8
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
[

Diff for: v2.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"iteration": 0
3+
}

0 commit comments

Comments
 (0)