refactor: 依赖收集相关代码抽出独立成库
This commit is contained in:
42
packages/dep/package.json
Normal file
42
packages/dep/package.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"version": "1.3.1",
|
||||
"name": "@tmagic/dep",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"dist/*"
|
||||
],
|
||||
"main": "dist/tmagic-dep.umd.cjs",
|
||||
"module": "dist/tmagic-dep.js",
|
||||
"types": "types/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./types/index.d.ts",
|
||||
"import": "./dist/tmagic-dep.js",
|
||||
"require": "./dist/tmagic-dep.umd.cjs"
|
||||
},
|
||||
"./*": "./*"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"build": "npm run build:type && vite build",
|
||||
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
||||
"clear:type": "rimraf ./types"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/schema": "1.3.1",
|
||||
"@tmagic/utils": "1.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^15.12.4",
|
||||
"rimraf": "^3.0.2",
|
||||
"typescript": "^5.0.4",
|
||||
"vite": "^4.4.4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user