Skip to content

Commit a50a511

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ 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';
1213
import { join, resolve, sep } from 'node:path';
1314

1415
export interface LayerPublisherStackProps extends StackProps {
@@ -146,8 +147,9 @@ export class LayerPublisherStack extends Stack {
146147

147148
// Phase 0: Remove after pre-release
148149
// we need this because while we are in pre-release, the version is not updated normally on this branch
149-
execSync(
150-
`echo "{ \"iteration\": 0 }" > ${join(projectRoot, 'v2.json')}`
150+
writeFileSync(
151+
join(projectRoot, 'v2.json'),
152+
JSON.stringify({ iteration: 0 })
151153
);
152154

153155
// Phase 1: Cleanup & create tmp folder

0 commit comments

Comments
 (0)