File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { StringParameter } from 'aws-cdk-lib/aws-ssm';
9
9
import { Construct } from 'constructs' ;
10
10
import { execSync } from 'node:child_process' ;
11
11
import { randomUUID } from 'node:crypto' ;
12
+ import { writeFileSync } from 'node:fs' ;
12
13
import { join , resolve , sep } from 'node:path' ;
13
14
14
15
export interface LayerPublisherStackProps extends StackProps {
@@ -146,8 +147,9 @@ export class LayerPublisherStack extends Stack {
146
147
147
148
// Phase 0: Remove after pre-release
148
149
// 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 } )
151
153
) ;
152
154
153
155
// Phase 1: Cleanup & create tmp folder
You can’t perform that action at this time.
0 commit comments