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