File tree 4 files changed +5
-4
lines changed
src/common/runtime/helper
4 files changed +5
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- module . exports = function ( api ) {
1
+ export default function ( api ) {
2
2
api . cache ( true ) ;
3
3
return {
4
4
presets : [ '@babel/preset-typescript' ] ,
Original file line number Diff line number Diff line change 2
2
"name" : " @webgpu/cts" ,
3
3
"version" : " 0.1.0" ,
4
4
"description" : " WebGPU Conformance Test Suite" ,
5
+ "type" : " module" ,
5
6
"scripts" : {
6
7
"test" : " grunt all" ,
7
8
"all" : " grunt all" ,
Original file line number Diff line number Diff line change 1
1
/* eslint no-process-exit: "off" */
2
2
/* eslint @typescript-eslint/no-namespace: "off" */
3
3
4
- function node ( ) {
5
- const { existsSync } = require ( 'fs' ) ;
4
+ async function node ( ) {
5
+ const { existsSync } = await import ( 'fs' ) ;
6
6
7
7
return {
8
8
type : 'node' ,
@@ -41,6 +41,6 @@ function deno() {
41
41
} ;
42
42
}
43
43
44
- const sys = typeof globalThis . process !== 'undefined' ? node ( ) : deno ( ) ;
44
+ const sys = typeof globalThis . process !== 'undefined' ? await node ( ) : deno ( ) ;
45
45
46
46
export default sys ;
You can’t perform that action at this time.
0 commit comments