1
0
mirror of synced 2026-03-23 02:58:34 +08:00

refactor: 依赖收集相关代码抽出独立成库

This commit is contained in:
roymondchen
2023-11-16 19:34:50 +08:00
parent 2b10e7eda9
commit 94641bad76
32 changed files with 947 additions and 710 deletions

42
packages/dep/package.json Normal file
View 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"
}
}