Fix module resolution stuff

This commit is contained in:
Jon Staab
2025-04-02 13:17:06 -07:00
parent 13818e5c80
commit 932a08b7b1
13 changed files with 39 additions and 35 deletions
+3 -3
View File
@@ -8,13 +8,13 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/app/src/index", "main": "dist/app/src/index.js",
"types": "dist/app/src/index", "types": "dist/app/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -7,13 +7,13 @@
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"main": "dist/index", "main": "dist/index.js",
"types": "dist/index", "types": "dist/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -7,13 +7,13 @@
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"main": "dist/dvm/src/index", "main": "dist/dvm/src/index.js",
"types": "dist/dvm/src/index", "types": "dist/dvm/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+5 -3
View File
@@ -8,9 +8,11 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/editor/src/index",
"types": "dist/editor/src/index",
"exports": { "exports": {
".": {
"import": "./dist/editor/src/index.js",
"types": "./dist/editor/src/index.d.ts"
},
"./index.css": "src/index.css" "./index.css": "src/index.css"
}, },
"files": [ "files": [
@@ -18,7 +20,7 @@
"src/index.css" "src/index.css"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+2
View File
@@ -1,3 +1,5 @@
export * from "./nodeviews/index.js" export * from "./nodeviews/index.js"
export * from "./extensions/index.js" export * from "./extensions/index.js"
export * from "./plugins/index.js" export * from "./plugins/index.js"
export {Editor, NodeViewProps} from '@tiptap/core'
export {UploadTask} from 'nostr-editor'
+3 -3
View File
@@ -7,13 +7,13 @@
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"main": "dist/feeds/src/index", "main": "dist/feeds/src/index.js",
"types": "dist/feeds/src/index", "types": "dist/feeds/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -14,10 +14,10 @@
"files": [ "files": [
"dist" "dist"
], ],
"main": "dist/index", "main": "dist/index.js",
"types": "dist/index", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -8,13 +8,13 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/net/src/index", "main": "dist/net/src/index.js",
"types": "dist/net/src/index", "types": "dist/net/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -8,13 +8,13 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/relay/src/index", "main": "dist/relay/src/index.js",
"types": "dist/relay/src/index", "types": "dist/relay/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -8,13 +8,13 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/signer/src/index", "main": "dist/signer/src/index.js",
"types": "dist/signer/src/index", "types": "dist/signer/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -8,13 +8,13 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/store/src/index", "main": "dist/store/src/index.js",
"types": "dist/store/src/index", "types": "dist/store/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+3 -3
View File
@@ -8,13 +8,13 @@
"access": "public" "access": "public"
}, },
"type": "module", "type": "module",
"main": "dist/util/src/index", "main": "dist/util/src/index.js",
"types": "dist/util/src/index", "types": "dist/util/src/index.d.ts",
"files": [ "files": [
"dist" "dist"
], ],
"scripts": { "scripts": {
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile --force",
"clean": "rimraf ./dist", "clean": "rimraf ./dist",
"compile": "tsc -b tsconfig.build.json", "compile": "tsc -b tsconfig.build.json",
"prepublishOnly": "pnpm run build" "prepublishOnly": "pnpm run build"
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "nodenext", "module": "esnext",
"moduleResolution": "nodenext", "moduleResolution": "bundler",
"target": "esnext", "target": "esnext",
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,