fix exports
This commit is contained in:
2525
package-lock.json
generated
2525
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@@ -1,8 +1,19 @@
|
||||
{
|
||||
"name": "takerofnotes-plugin-filesystem",
|
||||
"version": "1.0.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nicwands/takerofnotes-plugin-filesystem.git"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"main": "dist/index.js",
|
||||
"exports": {
|
||||
".": "./dist/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"author": "nicwands",
|
||||
"license": "MIT",
|
||||
"description": "Filesystem storage plugin for Taker of Notes",
|
||||
@@ -10,5 +21,10 @@
|
||||
"electron": "^40.6.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"takerofnotes-plugin-sdk": "^0.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^29.0.0",
|
||||
"@rollup/plugin-node-resolve": "^16.0.3",
|
||||
"rollup": "^4.59.0"
|
||||
}
|
||||
}
|
||||
|
||||
12
rollup.config.js
Normal file
12
rollup.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import resolve from '@rollup/plugin-node-resolve'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
|
||||
export default {
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
file: 'dist/index.js',
|
||||
format: 'esm',
|
||||
sourcemap: true,
|
||||
},
|
||||
plugins: [resolve(), commonjs()],
|
||||
}
|
||||
Reference in New Issue
Block a user