diff --git a/plugins/embed/package.json b/plugins/embed/package.json index 9b4b3be4..daf0e019 100644 --- a/plugins/embed/package.json +++ b/plugins/embed/package.json @@ -1,29 +1,26 @@ { "name": "@aomao/plugin-embed", - "version": "1.0.0", - "description": "> TODO: description", - "author": "yanmao <55792257+yanmao-cc@users.noreply.github.com>", - "homepage": "https://github.com/yanmao-cc/am-editor/tree/master/plugins/embed#readme", - "license": "MIT", - "main": "src/index.ts", - "directories": { - "lib": "lib", - "test": "__tests__" - }, + "version": "2.6.14", + "main": "dist/index.ts", + "module": "dist/index.esm.js", + "typings": "dist/index.d.ts", "files": [ - "lib" + "dist", + "lib", + "src" ], - "publishConfig": { - "access": "public" - }, + "author": "me@yanmao.cc", + "license": "MIT", + "homepage": "https://github.com/yanmao-cc/am-editor#readme", "repository": { "type": "git", "url": "git+https://github.com/yanmao-cc/am-editor.git" }, - "scripts": { - "test": "echo \"Error: run tests from root\" && exit 1" - }, "bugs": { "url": "https://github.com/yanmao-cc/am-editor/issues" + }, + "dependencies": { + "@aomao/engine": "^2.6.14", + "@babel/runtime": "^7.13.10" } } diff --git a/plugins/embed/tsconfig.json b/plugins/embed/tsconfig.json new file mode 100644 index 00000000..3ff5ad30 --- /dev/null +++ b/plugins/embed/tsconfig.json @@ -0,0 +1,34 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "esnext", + "moduleResolution": "node", + "importHelpers": true, + "jsx": "react", + "allowJs": true, + "skipLibCheck": true, + "experimentalDecorators": true, + "noImplicitReturns": true, + "declaration": true, + "suppressImplicitAnyIndexErrors": true, + "esModuleInterop": true, + "sourceMap": true, + "baseUrl": "./", + "strict": true, + "paths": { + "@/*": ["src/*"] + }, + "allowSyntheticDefaultImports": true + }, + "exclude": [ + "node_modules", + "lib", + "es", + "dist", + "docs-dist", + "typings", + "**/__test__", + "test", + "fixtures" + ] +}