Skip to content

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

core: use tsc instead of tsup for builds

Abdullah Atta02008ad0988a
diff --git a/packages/core/package.json b/packages/core/package.json
index db95b46cc..e1e63038d 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -2,18 +2,19 @@
"name": "@notesnook/core",
"version": "8.1.3",
"license": "GPL-3.0-or-later",
- "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"
}
}
},
@@ -58,7 +59,7 @@
"pretest:e2e": "node scripts/prebuild.mjs",
"test:e2e": "cross-env IS_E2E=true vitest run",
"test": "vitest run",
- "build": "tsup-node src/index.ts",
+ "build": "node ../../scripts/build.mjs",
"prepublishOnly": "npm run build",
"watch": "npm run build -- --watch"
},