theme: include both esm and cjs variants in build

This commit is contained in:
Abdullah Atta
2024-09-23 12:29:41 +05:00
parent 95b50eb5ca
commit 870ce259f0
2 changed files with 23 additions and 14 deletions

View File

@@ -1,19 +1,19 @@
{
"name": "@notesnook/theme",
"version": "2.0.7",
"version": "2.1.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@notesnook/theme",
"version": "2.0.7",
"version": "2.1.1",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@emotion/react": "11.11.1",
"@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",
@@ -432,16 +432,13 @@
}
},
"node_modules/@trpc/server": {
"version": "10.44.1",
"resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.44.1.tgz",
"integrity": "sha512-mF7B+K6LjuboX8I1RZgKE5GA/fJhsJ8tKGK2UBt3Bwik7hepEPb4NJgNr7vO6BK5IYwPdBLRLTctRw6XZx0sRg==",
"version": "10.45.2",
"resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.45.2.tgz",
"integrity": "sha512-wOrSThNNE4HUnuhJG6PfDRp4L2009KDVxsd+2VYH8ro6o/7/jwYZ8Uu5j+VaW+mOmc8EHerHzGcdbGNQSAUPgg==",
"dev": true,
"funding": [
"https://trpc.io/sponsor"
],
"engines": {
"node": ">=18.0.0"
}
]
},
"node_modules/@types/json-schema": {
"version": "7.0.15",

View File

@@ -1,8 +1,20 @@
{
"name": "@notesnook/theme",
"version": "2.0.7",
"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/themeprovider.git"
@@ -12,7 +24,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",
@@ -33,8 +45,8 @@
"scripts": {
"prebuild": "node ./scripts/prebuild.mjs",
"generate": "node ./scripts/schema-generator.mjs",
"build": "tsc",
"build": "tsup-node src/index.ts",
"prepublishOnly": "npm run build",
"watch": "tsc --watch"
"watch": "npm run build -- --watch"
}
}