Skip to content

Commit

Permalink
Export lib
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 19, 2022
1 parent c70ec55 commit 1020ea1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/lib.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as RelatedResources } from './views/RelatedResources.vue'
1 change: 1 addition & 0 deletions webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 1020ea1

Please sign in to comment.