File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1616 "pkg" : {
1717 "assets" : [
1818 " node_modules/leveldown/**/*" ,
19- " node_modules/utp-native/**/*" ,
20- " dist/lib/workers/worker.js "
21- ]
19+ " node_modules/utp-native/**/*"
20+ ],
21+ "scripts" : " dist/lib/workers/worker.js "
2222 },
2323 "scripts" : {
2424 "build" : " tsc -p ./tsconfig.build.json" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { v4 as uuidv4 } from 'uuid';
77import testWorkers from '../lib/workers/test-workers' ;
88import testLevel from '../lib/test-level' ;
99import testUtpNative from '../lib/test-utp-native' ;
10+ import * as os from 'os' ;
1011
1112async function main ( argv = process . argv ) : Promise < number > {
1213 // Print out command-line arguments
@@ -28,7 +29,7 @@ async function main(argv = process.argv): Promise<number> {
2829 process . stdout . write ( nums . num1 + ' + ' + nums . num2 + ' = ' + sum + '\n' ) ;
2930
3031 // Testing native modules
31- const dir = argv [ 2 ] ?? '/tmp' ;
32+ const dir = argv [ 2 ] ?? os . tmpdir ( ) ;
3233 await testLevel ( dir ) ;
3334 await testWorkers ( ) ;
3435 await testUtpNative ( ) ;
You can’t perform that action at this time.
0 commit comments