git ssb

0+

cel-desktop / ssb-pkg



Tree: cfc8d49135488f7554210234b3a503c2dbd6c6a5

Files: cfc8d49135488f7554210234b3a503c2dbd6c6a5 / test / test-46-input-target-js-exe / main.js

487 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const assert = require('assert');
6const utils = require('../utils.js');
7
8assert(!module.parent);
9assert(__dirname === process.cwd());
10
11const target = process.argv[2] || 'latest';
12const input = './test-x-index.js';
13const exe = (process.platform === 'win32' ? '.exe' : '');
14const newcomers = [ 'test-x-index' + exe ];
15const before = utils.filesBefore(newcomers);
16
17utils.pkg.sync([
18 '--target', target,
19 input
20]);
21
22utils.filesAfter(before, newcomers);
23

Built with git-ssb-web