ui: include both esm and cjs variants in build

This commit is contained in:
Abdullah Atta
2024-09-23 12:28:17 +05:00
parent 749a13efbc
commit f243d13b81
2 changed files with 18 additions and 6 deletions

View File

@@ -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",

View File

@@ -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"
}
}