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