Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
support opn. fixes #207
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Aug 26, 2017
1 parent f579a2d commit aa6e7a4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dictionary/opn.js
@@ -0,0 +1,15 @@
'use strict';

module.exports = {
pkg: {
patches: {
'index.js': [
'path.join(__dirname, \'xdg-open\')',
'path.join(path.dirname(process.execPath), \'xdg-open\')'
]
},
deployFiles: [
[ 'xdg-open', 'xdg-open' ]
]
}
};
6 changes: 6 additions & 0 deletions test/test-79-npm/opn/opn.js
@@ -0,0 +1,6 @@
'use strict';

var opn = require('opn');
opn('https://github.com/zeit/pkg').then(() => {
console.log('ok');
});
7 changes: 7 additions & 0 deletions test/test-79-npm/opn/opn.meta.js
@@ -0,0 +1,7 @@
'use strict';

module.exports = function () {
return {
deployFilesFrom: [ 'opn' ]
};
};
1 change: 1 addition & 0 deletions test/test-79-npm/opn/package.json
@@ -0,0 +1 @@
{ "private": true }

0 comments on commit aa6e7a4

Please sign in to comment.