File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
packages/rules-unit-testing Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ import pkg from './package.json';
20
20
import typescript from 'typescript' ;
21
21
import { emitModulePackageFile } from '../../scripts/build/rollup_emit_module_package_file' ;
22
22
23
- const plugins = [
23
+ const buildPlugins = [
24
24
typescriptPlugin ( {
25
25
typescript
26
26
} )
27
27
] ;
28
28
29
- const buildPlugins = [ typescriptPlugin ( { typescript } ) ] ;
30
-
31
29
const deps = Object . keys (
32
30
Object . assign ( { } , pkg . peerDependencies , pkg . dependencies )
33
31
) ;
@@ -40,14 +38,16 @@ export default [
40
38
format : 'cjs' ,
41
39
sourcemap : true
42
40
} ,
43
- plugins : [ ...plugins ] ,
41
+ plugins : [ ...buildPlugins ] ,
44
42
external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
45
43
} ,
46
44
{
47
45
input : 'index.ts' ,
48
- output : [
49
- { file : pkg . exports [ '.' ] . node . import , format : 'es' , sourcemap : true }
50
- ] ,
46
+ output : {
47
+ file : pkg . exports [ '.' ] . node . import ,
48
+ format : 'es' ,
49
+ sourcemap : true
50
+ } ,
51
51
plugins : [ ...buildPlugins , emitModulePackageFile ( ) ] ,
52
52
external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
53
53
}
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export class RulesTestEnvironmentImpl implements RulesTestEnvironment {
126
126
return this . withSecurityRulesDisabled ( async context => {
127
127
const { items } = await context . storage ( ) . ref ( ) . listAll ( ) ;
128
128
await Promise . all (
129
- items . map ( item => {
129
+ items . map ( ( item : { delete : ( ) => any ; } ) => {
130
130
return item . delete ( ) ;
131
131
} )
132
132
) ;
You can’t perform that action at this time.
0 commit comments