Skip to content

Commit eda0d7d

Browse files
committed
Add JavaScript generator to test
1 parent 8da58b4 commit eda0d7d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

test/test.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ import * as tools from '@accility/protoc-tools'
22
import * as gRPCWeb from '../dist/plugin'
33

44
tools.protoc({
5-
files: [ __dirname + '/main.proto' ],
6-
includeDirs: [ __dirname ],
7-
outDir: __dirname + '/generated',
8-
outOptions: [gRPCWeb({
9-
module: 'commonjs'
10-
})]
5+
files: [__dirname + '/main.proto'],
6+
includeDirs: [__dirname],
7+
outDir: __dirname + '/generated',
8+
outOptions: [
9+
tools.generators.js({
10+
outOptions: 'import_style=commonjs'
11+
}),
12+
gRPCWeb({
13+
module: 'commonjs'
14+
})
15+
]
1116
})

0 commit comments

Comments
 (0)