Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fs: include both esm and cjs variants in build

Abdullah Atta275d5d7f042f
diff --git a/packages/streamable-fs/package-lock.json b/packages/streamable-fs/package-lock.json
index b347dfde7..8edb63533 100644
--- a/packages/streamable-fs/package-lock.json
+++ b/packages/streamable-fs/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@notesnook/streamable-fs",
- "version": "2.0.7",
+ "version": "2.1.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@notesnook/streamable-fs",
- "version": "2.0.7",
+ "version": "2.1.1",
"license": "GPL-3.0-or-later",
"dependencies": {
"@notesnook/crypto": "file:../crypto"
diff --git a/packages/streamable-fs/package.json b/packages/streamable-fs/package.json
index f9f0cd8ac..80c82d7d0 100644
--- a/packages/streamable-fs/package.json
+++ b/packages/streamable-fs/package.json
@@ -1,14 +1,25 @@
{
"name": "@notesnook/streamable-fs",
- "version": "2.0.7",
+ "version": "2.1.1",
"description": "",
"main": "./dist/index.js",
+ "module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
+ "exports": {
+ "require": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.js"
+ },
+ "import": {
+ "types": "./dist/index.d.mts",
+ "default": "./dist/index.mjs"
+ }
+ },
"scripts": {
- "build": "tsc --declaration --outDir ./dist",
- "prepublishOnly": "npm run build"
+ "build": "tsup-node src/index.ts",
+ "prepublishOnly": "npm run build",
+ "watch": "npm run build -- --watch"
},
- "author": "",
"license": "GPL-3.0-or-later",
"dependencies": {
"@notesnook/crypto": "file:../crypto"