diff --git a/dictionary/opn.js b/dictionary/opn.js new file mode 100644 index 000000000..99b4a61dc --- /dev/null +++ b/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' ] + ] + } +}; diff --git a/test/test-79-npm/opn/opn.js b/test/test-79-npm/opn/opn.js new file mode 100644 index 000000000..bf3d938ad --- /dev/null +++ b/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'); +}); diff --git a/test/test-79-npm/opn/opn.meta.js b/test/test-79-npm/opn/opn.meta.js new file mode 100644 index 000000000..2b63864cd --- /dev/null +++ b/test/test-79-npm/opn/opn.meta.js @@ -0,0 +1,7 @@ +'use strict'; + +module.exports = function () { + return { + deployFilesFrom: [ 'opn' ] + }; +}; diff --git a/test/test-79-npm/opn/package.json b/test/test-79-npm/opn/package.json new file mode 100644 index 000000000..101d327bd --- /dev/null +++ b/test/test-79-npm/opn/package.json @@ -0,0 +1 @@ +{ "private": true }