git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / node-pre-gyp / node-pre-gyp.js

336 bytesRaw
1'use strict';
2
3var fs = require('fs');
4if (!fs.existsSync('package.json')) {
5 fs.writeFileSync('package.json', '{}');
6}
7
8var Run = require('node-pre-gyp').Run;
9var r = new Run();
10
11try {
12 r.commands.clean();
13} catch (e) {
14 if (e.message.indexOf('undefined package.json is not node-pre-gyp ready') >= 0) {
15 console.log('ok');
16 }
17}
18

Built with git-ssb-web