git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-50-package-json-3 / main.js

581 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const path = require('path');
6const assert = require('assert');
7const utils = require('../utils.js');
8
9assert(!module.parent);
10assert(__dirname === process.cwd());
11
12const target = process.argv[2] || 'host';
13const output = './test-output.exe';
14
15let left, right;
16
17left = utils.spawn.sync(
18 'node', [ 'test-x-index.js' ]
19);
20
21utils.pkg.sync([
22 '--target', target,
23 '--output', output, '.'
24]);
25
26right = utils.spawn.sync(
27 './' + path.basename(output), [],
28 { cwd: path.dirname(output) }
29);
30
31assert.equal(left, right);
32utils.vacuum.sync(output);
33

Built with git-ssb-web