Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / test / test-46-outpath-target / main.js
564 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'; |
13 | const exe = { win32: '.exe', linux: '', |
14 | darwin: '', freebsd: '' }[process.platform]; |
15 | const newcomers = [ 'out/test-x-index' + exe ]; |
16 | const before = utils.filesBefore(newcomers); |
17 | |
18 | utils.pkg.sync([ |
19 | '--target', target, |
20 | '--out-path', 'out', input |
21 | ]); |
22 | |
23 | utils.filesAfter(before, newcomers); |
24 | utils.vacuum.sync('out'); |
25 |
Built with git-ssb-web