File tree Expand file tree Collapse file tree 7 files changed +50
-33
lines changed
test/e2e/amazonq/framework Expand file tree Collapse file tree 7 files changed +50
-33
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ if [ "$TOOLKITS_CODEARTIFACT_DOMAIN" ] && [ "$TOOLKITS_CODEARTIFACT_REPO" ] && [
22
22
fi
23
23
24
24
# TODO: move this to the "install" phase?
25
- export NODE_OPTIONS=--max-old-space-size=8192
25
+ export NODE_OPTIONS=' --max-old-space-size=8192'
26
26
npm 2>&1 ci | run_and_report 2 ' npm WARN deprecated' ' Deprecated dependencies must be updated.'
Original file line number Diff line number Diff line change 69
69
"webpack-merge" : " ^5.10.0"
70
70
},
71
71
"dependencies" : {
72
+ "@types/node" : " ^22.7.5" ,
72
73
"vscode-nls" : " ^5.2.0" ,
73
74
"vscode-nls-dev" : " ^4.0.4"
74
75
}
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
/* eslint-disable no-restricted-imports */
7
- import * as fs from 'fs-extra '
7
+ import fs from 'fs'
8
8
import * as path from 'path'
9
9
10
10
// Moves all dependencies into `dist`
@@ -73,33 +73,35 @@ const tasks: CopyTask[] = [
73
73
} ,
74
74
]
75
75
76
- async function copy ( task : CopyTask ) : Promise < void > {
76
+ function copy ( task : CopyTask ) : void {
77
77
const src = path . resolve ( projectRoot , task . target )
78
78
const dst = path . resolve ( outRoot , task . destination ?? task . target )
79
79
80
80
try {
81
- await fs . copy ( src , dst , {
81
+ fs . cpSync ( src , dst , {
82
82
recursive : true ,
83
- overwrite : true ,
83
+ force : true ,
84
84
errorOnExist : false ,
85
85
} )
86
86
} catch ( error ) {
87
87
throw new Error ( `Copy "${ src } " to "${ dst } " failed: ${ error instanceof Error ? error . message : error } ` )
88
88
}
89
89
}
90
90
91
- void ( async ( ) => {
92
- const args = process . argv . slice ( 2 )
93
- if ( args . includes ( '--vueHr' ) ) {
94
- vueHr = true
95
- console . log ( 'Using Vue Hot Reload webpacks from core/' )
96
- }
91
+ const args = process . argv . slice ( 2 )
92
+ if ( args . includes ( '--vueHr' ) ) {
93
+ vueHr = true
94
+ console . log ( 'Using Vue Hot Reload webpacks from core/' )
95
+ }
97
96
97
+ function main ( ) {
98
98
try {
99
- await Promise . all ( tasks . map ( copy ) )
99
+ tasks . map ( copy )
100
100
} catch ( error ) {
101
101
console . error ( '`copyFiles.ts` failed' )
102
102
console . error ( error )
103
103
process . exit ( 1 )
104
104
}
105
- } ) ( )
105
+ }
106
+
107
+ void main ( )
Original file line number Diff line number Diff line change @@ -34,5 +34,5 @@ export function injectJSDOM() {
34
34
} )
35
35
36
36
// jsdom doesn't have support for structuredClone. See https://github.com/jsdom/jsdom/issues/3363
37
- global . structuredClone = ( val ) => JSON . parse ( JSON . stringify ( val ) )
37
+ global . structuredClone = ( val : any ) => JSON . parse ( JSON . stringify ( val ) )
38
38
}
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
/* eslint-disable no-restricted-imports */
7
- import * as fs from 'fs-extra '
7
+ import fs from 'fs'
8
8
import * as path from 'path'
9
9
10
10
// Moves all dependencies into `dist`
@@ -46,27 +46,28 @@ const tasks: CopyTask[] = [
46
46
} ,
47
47
]
48
48
49
- async function copy ( task : CopyTask ) : Promise < void > {
49
+ function copy ( task : CopyTask ) : void {
50
50
const src = path . resolve ( projectRoot , task . target )
51
51
const dst = path . resolve ( outRoot , task . destination ?? task . target )
52
52
53
53
try {
54
- await fs . copy ( src , dst , {
54
+ fs . cpSync ( src , dst , {
55
55
recursive : true ,
56
- overwrite : true ,
56
+ force : true ,
57
57
errorOnExist : false ,
58
58
} )
59
59
} catch ( error ) {
60
60
throw new Error ( `Copy "${ src } " to "${ dst } " failed: ${ error instanceof Error ? error . message : error } ` )
61
61
}
62
62
}
63
-
64
- void ( async ( ) => {
63
+ function main ( ) {
65
64
try {
66
- await Promise . all ( tasks . map ( copy ) )
65
+ tasks . map ( copy )
67
66
} catch ( error ) {
68
67
console . error ( '`copyFiles.ts` failed' )
69
68
console . error ( error )
70
69
process . exit ( 1 )
71
70
}
72
- } ) ( )
71
+ }
72
+
73
+ void main ( )
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
/* eslint-disable no-restricted-imports */
7
- import * as fs from 'fs-extra '
7
+ import fs from 'fs'
8
8
import * as path from 'path'
9
9
10
10
// Copies various dependencies into "dist/".
@@ -100,27 +100,28 @@ const tasks: CopyTask[] = [
100
100
} ,
101
101
]
102
102
103
- async function copy ( task : CopyTask ) : Promise < void > {
103
+ function copy ( task : CopyTask ) : void {
104
104
const src = path . resolve ( projectRoot , task . target )
105
105
const dst = path . resolve ( outRoot , task . destination ?? task . target )
106
106
107
107
try {
108
- await fs . copy ( src , dst , {
108
+ fs . cpSync ( src , dst , {
109
109
recursive : true ,
110
- overwrite : true ,
110
+ force : true ,
111
111
errorOnExist : false ,
112
112
} )
113
113
} catch ( error ) {
114
114
throw new Error ( `Copy "${ src } " to "${ dst } " failed: ${ error instanceof Error ? error . message : error } ` )
115
115
}
116
116
}
117
-
118
- void ( async ( ) => {
117
+ function main ( ) {
119
118
try {
120
- await Promise . all ( tasks . map ( copy ) )
119
+ tasks . map ( copy )
121
120
} catch ( error ) {
122
121
console . error ( '`copyFiles.ts` failed' )
123
122
console . error ( error )
124
123
process . exit ( 1 )
125
124
}
126
- } ) ( )
125
+ }
126
+
127
+ void main ( )
You can’t perform that action at this time.
0 commit comments