feat: isolated plugin system (#2742)

(cherry picked from commit f2ac2e5b84)
This commit is contained in:
Himself65
2023-06-09 16:43:46 +08:00
committed by himself65
parent c2c2ccbf5d
commit b79a63ce0a
51 changed files with 489 additions and 209 deletions

View File

@@ -1,18 +1,23 @@
{
"name": "@toeverything/plugin-infra",
"private": true,
"type": "module",
"scripts": {
"build": "vite build"
"build": "vite build",
"dev": "vite build --watch"
},
"exports": {
"./manager": "./src/manager.ts",
"./type": "./src/type.ts",
"./react": "./src/react/index.ts"
"./manager": {
"type": "./dist/manager.d.ts",
"import": "./dist/manager.js",
"require": "./dist/manager.cjs"
},
"./type": {
"type": "./dist/type.d.ts",
"import": "./dist/type.js",
"require": "./dist/type.cjs"
}
},
"dependencies": {
"@affine/component": "workspace:*",
"@affine/env": "workspace:*",
"@affine/workspace": "workspace:*",
"@blocksuite/blocks": "0.0.0-20230607055421-9b20fcaf-nightly",
"@blocksuite/editor": "0.0.0-20230607055421-9b20fcaf-nightly",
"@blocksuite/global": "0.0.0-20230607055421-9b20fcaf-nightly",
@@ -20,7 +25,9 @@
"@blocksuite/store": "0.0.0-20230607055421-9b20fcaf-nightly"
},
"devDependencies": {
"jotai": "^2.1.1"
"jotai": "^2.1.1",
"vite": "^4.3.9",
"vite-plugin-dts": "^2.3.0"
},
"peerDependencies": {
"@blocksuite/blocks": "*",