fix exports

This commit is contained in:
nicwands
2026-02-24 13:45:09 -05:00
parent fe12109209
commit 8da3d5d8af
3 changed files with 1628 additions and 927 deletions

2525
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,19 @@
{ {
"name": "takerofnotes-plugin-filesystem", "name": "takerofnotes-plugin-filesystem",
"version": "1.0.0", "version": "1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/nicwands/takerofnotes-plugin-filesystem.git"
},
"type": "module", "type": "module",
"main": "index.js", "main": "dist/index.js",
"exports": {
".": "./dist/index.js"
},
"scripts": {
"build": "rollup -c",
"prepublishOnly": "npm run build"
},
"author": "nicwands", "author": "nicwands",
"license": "MIT", "license": "MIT",
"description": "Filesystem storage plugin for Taker of Notes", "description": "Filesystem storage plugin for Taker of Notes",
@@ -10,5 +21,10 @@
"electron": "^40.6.0", "electron": "^40.6.0",
"gray-matter": "^4.0.3", "gray-matter": "^4.0.3",
"takerofnotes-plugin-sdk": "^0.1.0" "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
View 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()],
}