Skip to content

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

ui: include both esm and cjs variants in build

Abdullah Attaf243d13b8184
diff --git a/packages/ui/package-lock.json b/packages/ui/package-lock.json
index b2ef2c17a..12938ed60 100644
--- a/packages/ui/package-lock.json
+++ b/packages/ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@notesnook/ui",
- "version": "2.0.8",
+ "version": "2.1.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@notesnook/ui",
- "version": "2.0.8",
+ "version": "2.1.1",
"license": "GPL-3.0-or-later",
"dependencies": {
"@notesnook/theme": "file:../theme"
@@ -48,7 +48,7 @@
"@theme-ui/color": "^0.16.1",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
- "@trpc/server": "^10.31.0",
+ "@trpc/server": "^10.45.2",
"@types/react": "^18.2.39",
"@types/tinycolor2": "^1.4.3",
"isomorphic-fetch": "^3.0.0",
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 0d58d4d71..7f26cc4f8 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,8 +1,20 @@
{
"name": "@notesnook/ui",
- "version": "2.0.8",
+ "version": "2.1.1",
"main": "./dist/index.js",
+ "module": "./dist/index.mjs",
+ "types": "./dist/index.d.ts",
"license": "GPL-3.0-or-later",
+ "exports": {
+ "require": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.js"
+ },
+ "import": {
+ "types": "./dist/index.d.mts",
+ "default": "./dist/index.mjs"
+ }
+ },
"repository": {
"type": "git",
"url": "git://github.com/streetwriters/notesnook.git"
@@ -38,8 +50,8 @@
"react-dom": ">=18"
},
"scripts": {
- "build": "tsc",
+ "build": "tsup-node src/index.ts",
"prepublishOnly": "npm run build",
- "watch": "tsc --watch"
+ "watch": "npm run build -- --watch"
}
}