global: use tsup for bundling packages

This commit is contained in:
Abdullah Atta
2024-09-23 15:19:38 +05:00
parent ffd022cfa6
commit ecc9736b90
3 changed files with 3150 additions and 61 deletions

3180
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -53,7 +53,8 @@
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.1",
"prettier": "^2.8.8",
"serve": "^14.0.1"
"serve": "^14.0.1",
"tsup": "^8.3.0"
},
"dependencies": {
"eslint-plugin-header": "^3.1.1",

28
tsup.config.ts Normal file
View File

@@ -0,0 +1,28 @@
/*
This file is part of the Notesnook project (https://notesnook.com/)
Copyright (C) 2023 Streetwriters (Private) Limited
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { defineConfig } from "tsup";
export default defineConfig({
clean: true,
cjsInterop: true,
dts: true,
splitting: false,
format: ["cjs", "esm"]
});