diff --git a/package.json b/package.json index 82fbfe41..1fd3f300 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "related_resources", - "version": "24.0.0", - "description": "Related Resources", - "main": "main.js", - "private": true, + "name": "@nextcloud/related-resources", + "version": "0.0.1", + "description": "Related resources", + "main": "./js/lib.js", + "exports": "./js/lib.js", "scripts": { "build": "NODE_ENV=production webpack --progress --config webpack.js", "dev": "NODE_ENV=development webpack --progress --config webpack.js", @@ -46,6 +46,11 @@ "url": "https://github.com/ArtificialOwl/related_resources/issues" }, "homepage": "https://github.com/ArtificialOwl/related_resources#readme", + "files": [ + "LICENSE", + "README.md", + "js" + ], "engines": { "node": "^14.0.0", "npm": "^7.0.0" diff --git a/src/lib.js b/src/lib.js new file mode 100644 index 00000000..193830e4 --- /dev/null +++ b/src/lib.js @@ -0,0 +1 @@ +export { default as RelatedResources } from './views/RelatedResources.vue' diff --git a/webpack.js b/webpack.js index 0f9968f5..5f4de462 100644 --- a/webpack.js +++ b/webpack.js @@ -4,6 +4,7 @@ const path = require('path') webpackConfig.entry = { ...webpackConfig.entry, main: path.join(__dirname, 'src', 'main.js'), + lib: path.join(__dirname, 'src', 'lib.js'), } webpackConfig.stats = {