Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-46-input-output-target-js-exe / main.js
457 bytesRaw
1 | |
2 | |
3 | 'use strict'; |
4 | |
5 | const assert = require('assert'); |
6 | const utils = require('../utils.js'); |
7 | |
8 | assert(!module.parent); |
9 | assert(__dirname === process.cwd()); |
10 | |
11 | const target = process.argv[2] || 'latest'; |
12 | const input = './test-x-index.js'; |
13 | const newcomers = [ 'test-output.exe' ]; |
14 | const before = utils.filesBefore(newcomers); |
15 | |
16 | utils.pkg.sync([ |
17 | '--target', target, |
18 | '--output', 'test-output.exe', input |
19 | ]); |
20 | |
21 | utils.filesAfter(before, newcomers); |
22 |
Built with git-ssb-web