Skip to content

Commit 7dae5b6

Browse files
author
taojiu
committed
build: 移除 package.json 中的 style 和 exports 字段
移除了以下包的 package.json 文件中的 style 和 exports 字段: - designer - editor-core - editor-skeleton - engine - plugin-command - plugin-designer - plugin-outline-pane - shell - types - utils - workspace 这些字段的移除可能是为了简化包配置或使用其他方式来处理样式和模块导出。
1 parent cc7662e commit 7dae5b6

File tree

11 files changed

+11
-98
lines changed

11 files changed

+11
-98
lines changed

packages/designer/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,7 @@
4141
"registry": "https://registry.npmjs.org/",
4242
"main": "dist/index.umd.js",
4343
"module": "dist/index.es.js",
44-
"types": "dist/index.d.ts",
45-
"style": "dist/index.css",
46-
"exports": {
47-
".": {
48-
"import": "./dist/index.es.js",
49-
"require": "./dist/index.umd.js",
50-
"style": "./dist/index.css"
51-
}
52-
}
44+
"types": "dist/index.d.ts"
5345
},
5446
"repository": {
5547
"type": "http",

packages/editor-core/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,7 @@
4242
"registry": "https://registry.npmjs.org/",
4343
"main": "dist/index.umd.js",
4444
"module": "dist/index.es.js",
45-
"types": "dist/index.d.ts",
46-
"style": "dist/index.css",
47-
"exports": {
48-
".": {
49-
"import": "./dist/index.es.js",
50-
"require": "./dist/index.umd.js",
51-
"style": "./dist/index.css"
52-
}
53-
}
45+
"types": "dist/index.d.ts"
5446
},
5547
"repository": {
5648
"type": "http",

packages/editor-skeleton/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,7 @@
3737
"registry": "https://registry.npmjs.org/",
3838
"main": "dist/index.umd.js",
3939
"module": "dist/index.es.js",
40-
"types": "dist/index.d.ts",
41-
"style": "dist/index.css",
42-
"exports": {
43-
".": {
44-
"import": "./dist/index.es.js",
45-
"require": "./dist/index.umd.js",
46-
"style": "./dist/index.css"
47-
}
48-
}
40+
"types": "dist/index.d.ts"
4941
},
5042
"repository": {
5143
"type": "http",

packages/engine/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,7 @@
4141
"registry": "https://registry.npmjs.org/",
4242
"main": "dist/engine-core.umd.js",
4343
"module": "dist/engine-core.es.js",
44-
"types": "dist/index.d.ts",
45-
"style": "dist/engine-core.css",
46-
"exports": {
47-
".": {
48-
"import": "./dist/engine-core.es.js",
49-
"require": "./dist/engine-core.umd.js",
50-
"style": "./dist/engine-core.css"
51-
}
52-
}
44+
"types": "dist/index.d.ts"
5345
},
5446
"repository": {
5547
"type": "http",

packages/plugin-command/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@
2525
"registry": "https://registry.npmjs.org/",
2626
"main": "dist/index.umd.js",
2727
"module": "dist/index.es.js",
28-
"types": "dist/index.d.ts",
29-
"style": "dist/index.css",
30-
"exports": {
31-
".": {
32-
"import": "./dist/index.es.js",
33-
"require": "./dist/index.umd.js",
34-
"style": "./dist/index.css"
35-
}
36-
}
28+
"types": "dist/index.d.ts"
3729
},
3830
"repository": {
3931
"type": "git",

packages/plugin-designer/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,7 @@
3232
"registry": "https://registry.npmjs.org/",
3333
"main": "dist/index.umd.js",
3434
"module": "dist/index.es.js",
35-
"types": "dist/index.d.ts",
36-
"style": "dist/index.css",
37-
"exports": {
38-
".": {
39-
"import": "./dist/index.es.js",
40-
"require": "./dist/index.umd.js",
41-
"style": "./dist/index.css"
42-
}
43-
}
35+
"types": "dist/index.d.ts"
4436
},
4537
"repository": {
4638
"type": "http",

packages/plugin-outline-pane/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,7 @@
3131
"registry": "https://registry.npmjs.org/",
3232
"main": "dist/index.umd.js",
3333
"module": "dist/index.es.js",
34-
"types": "dist/index.d.ts",
35-
"style": "dist/index.css",
36-
"exports": {
37-
".": {
38-
"import": "./dist/index.es.js",
39-
"require": "./dist/index.umd.js",
40-
"style": "./dist/index.css"
41-
}
42-
}
34+
"types": "dist/index.d.ts"
4335
},
4436
"repository": {
4537
"type": "http",

packages/shell/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@
3939
"registry": "https://registry.npmjs.org/",
4040
"main": "dist/index.umd.js",
4141
"module": "dist/index.es.js",
42-
"types": "dist/index.d.ts",
43-
"style": "dist/index.css",
44-
"exports": {
45-
".": {
46-
"import": "./dist/index.es.js",
47-
"require": "./dist/index.umd.js",
48-
"style": "./dist/index.css"
49-
}
50-
}
42+
"types": "dist/index.d.ts"
5143
},
5244
"repository": {
5345
"type": "http",

packages/types/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@
2626
"registry": "https://registry.npmjs.org/",
2727
"main": "dist/index.umd.js",
2828
"module": "dist/index.es.js",
29-
"types": "dist/index.d.ts",
30-
"exports": {
31-
".": {
32-
"import": "./dist/index.es.js",
33-
"require": "./dist/index.umd.js",
34-
"default": "./dist/index.umd.js"
35-
}
36-
}
29+
"types": "dist/index.d.ts"
3730
},
3831
"repository": {
3932
"type": "http",

packages/utils/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,7 @@
3535
"registry": "https://registry.npmjs.org/",
3636
"main": "dist/index.umd.js",
3737
"module": "dist/index.es.js",
38-
"types": "dist/index.d.ts",
39-
"style": "dist/index.css",
40-
"exports": {
41-
".": {
42-
"import": "./dist/index.es.js",
43-
"require": "./dist/index.umd.js",
44-
"style": "./dist/index.css"
45-
}
46-
}
38+
"types": "dist/index.d.ts"
4739
},
4840
"repository": {
4941
"type": "http",

0 commit comments

Comments
 (0)