fix problem with npm workspace

This commit is contained in:
Anton Tranelis 2025-10-09 20:32:57 +02:00
parent 69923cb507
commit 5640913723
6 changed files with 17111 additions and 22 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.claude/
data/
node_modules

View File

@ -20,9 +20,6 @@ export default defineConfig({
*/
},
plugins: [react(), tailwindcss(), tsConfigPaths()],
resolve: {
dedupe: ['react', 'react-dom', 'react-router-dom'],
},
build: {
sourcemap: true,
rollupOptions: {
@ -32,7 +29,7 @@ export default defineConfig({
return 'utopia-ui'
}
if (id.includes('node_modules')) {
if (id.includes('react')) {
if (id.includes('react') || id.includes('scheduler') || id.includes('use-sync-external-store')) {
return 'react'
}
if (id.includes('tiptap')) {
@ -41,9 +38,7 @@ export default defineConfig({
if (id.includes('leaflet')) {
return 'leaflet'
}
if (id.includes('lib/node_modules')) {
return 'utopia-ui-vendor'
} else return 'vendor'
return 'vendor'
}
},
},

29
lib/package-lock.json generated
View File

@ -38,7 +38,6 @@
"react-markdown": "^9.0.1",
"react-photo-album": "^3.0.2",
"react-qr-code": "^2.0.16",
"react-router-dom": "^6.23.0",
"react-toastify": "^9.1.3",
"remark-breaks": "^4.0.0",
"tiptap-markdown": "^0.9.0",
@ -102,7 +101,8 @@
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.0"
}
},
"node_modules/@adobe/css-tools": {
@ -1438,6 +1438,7 @@
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.0.tgz",
"integrity": "sha512-O3rHJzAQKamUz1fvE0Qaw0xSFqsA/yafi2iqeE0pvdFtCO1viYx8QL6f3Ln/aCCTLxs68SLf0KPM9eSeM8yBnA==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=14.0.0"
}
@ -2517,16 +2518,16 @@
}
},
"node_modules/@tiptap/core": {
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.6.5.tgz",
"integrity": "sha512-CgXuhevQbBcPfxaXzGZgIY9+aVMSAd68Q21g3EONz1iZBw026QgiaLhGK6jgGTErZL4GoNL/P+gC5nFCvN7+cA==",
"version": "3.6.6",
"resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.6.6.tgz",
"integrity": "sha512-7Mx3Vc2qS9IpT6s/Xarxot1PKvbNIq6Avp3vU/BubyrH6gaGApd4UOvTMwGfS4itpradzd/DfwkmB4/r6wAjNQ==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
"@tiptap/pm": "^3.6.5"
"@tiptap/pm": "^3.6.6"
}
},
"node_modules/@tiptap/extension-blockquote": {
@ -2869,9 +2870,9 @@
}
},
"node_modules/@tiptap/extension-text-style": {
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/@tiptap/extension-text-style/-/extension-text-style-3.6.5.tgz",
"integrity": "sha512-RsFomrmpVsf0/l+mvsfO99eg+KV0U/NyVl7rrWBRzBWQ6rOPYZbJrZwKNPRJHx5bfjw5qWmT8ey4J2EjysCzog==",
"version": "3.6.6",
"resolved": "https://registry.npmjs.org/@tiptap/extension-text-style/-/extension-text-style-3.6.6.tgz",
"integrity": "sha512-mjcMfNIij77tK++Cu41z5rxK0I4nUR7EbTtBGCSdbwZukTFqCeaiuUX3A/i0sqnf5kklBqmG+pur/ylwEcxmzA==",
"license": "MIT",
"peer": true,
"funding": {
@ -2879,7 +2880,7 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
"@tiptap/core": "^3.6.5"
"@tiptap/core": "^3.6.6"
}
},
"node_modules/@tiptap/extension-underline": {
@ -2923,9 +2924,9 @@
}
},
"node_modules/@tiptap/pm": {
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.6.5.tgz",
"integrity": "sha512-S+j6MPgUXRIQd5/mdaLjaJnOt4ptFwjqGjGMUfBbf9a3uKpXUXaCCzfuC6ZikwaUtoVh4KN9BU3HCYDtgtENPA==",
"version": "3.6.6",
"resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.6.6.tgz",
"integrity": "sha512-E/rtpPEqPiQJrchdOUDcMPR69x96a+JeMWLL12fos4KfF7YVzQ5oUIij21RffV+qeHxug7HMUpQKBtCuJfek/Q==",
"license": "MIT",
"dependencies": {
"prosemirror-changeset": "^2.3.0",
@ -12015,6 +12016,7 @@
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.1.tgz",
"integrity": "sha512-X1m21aEmxGXqENEPG3T6u0Th7g0aS4ZmoNynhbs+Cn+q+QGTLt+d5IQ2bHAXKzKcxGJjxACpVbnYQSCRcfxHlQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"@remix-run/router": "1.23.0"
},
@ -12030,6 +12032,7 @@
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.1.tgz",
"integrity": "sha512-llKsgOkZdbPU1Eg3zK8lCn+sjD9wMRZZPuzmdWWX5SUs8OFkN5HnFVC0u5KMeMaC9aoancFI/KoLuKPqN+hxHw==",
"license": "MIT",
"peer": true,
"dependencies": {
"@remix-run/router": "1.23.0",
"react-router": "6.30.1"

View File

@ -97,7 +97,8 @@
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.0"
},
"dependencies": {
"@heroicons/react": "^2.0.17",
@ -129,7 +130,6 @@
"react-markdown": "^9.0.1",
"react-photo-album": "^3.0.2",
"react-qr-code": "^2.0.16",
"react-router-dom": "^6.23.0",
"react-toastify": "^9.1.3",
"remark-breaks": "^4.0.0",
"tiptap-markdown": "^0.9.0",

17082
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

8
package.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "utopia-map-workspace",
"private": true,
"workspaces": [
"app",
"lib"
]
}