Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / test / test-46-input-targets-many-4 / main.js
524 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 | |
14 | const newcomers = [ |
15 | 'test-x-index-linux', |
16 | 'test-x-index-macos', |
17 | 'test-x-index-win.exe' |
18 | ]; |
19 | |
20 | const before = utils.filesBefore(newcomers); |
21 | |
22 | utils.pkg.sync([ |
23 | '--target', `${target}-linux,${target}-macos,${target}-win`, |
24 | input |
25 | ]); |
26 | |
27 | utils.filesAfter(before, newcomers); |
28 |
Built with git-ssb-web