Skip to content

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

common: use tsc for builds instead of tsup

Abdullah Atta7acb0a8c0fde
diff --git a/packages/common/package.json b/packages/common/package.json
index 68a5971c1..9462ae059 100644
--- a/packages/common/package.json
+++ b/packages/common/package.json
@@ -2,22 +2,23 @@
"name": "@notesnook/common",
"version": "2.1.3",
"description": "A set of common utilities shared across multiple Notesnook clients and services.",
- "main": "./dist/index.js",
- "module": "./dist/index.mjs",
- "types": "./dist/index.d.ts",
+ "main": "./dist/cjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/types/index.d.ts",
+ "sideEffects": false,
"exports": {
"require": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.js"
+ "types": "./dist/types/index.d.ts",
+ "default": "./dist/cjs/index.js"
},
"import": {
- "types": "./dist/index.d.mts",
- "default": "./dist/index.mjs"
+ "types": "./dist/types/index.d.ts",
+ "default": "./dist/esm/index.js"
}
},
"scripts": {
"prepublishOnly": "npm run build",
- "build": "tsup-node src/index.ts",
+ "build": "node ../../scripts/build.mjs",
"watch": "npm run build -- --watch"
},
"repository": {