@@ -49,33 +49,28 @@ function generateVue2NormalPackageJson() {
4949 main : 'index.js' ,
5050 module : 'index.js' ,
5151 types : 'types/index.d.ts' ,
52+ typings : 'types/index.d.ts' , // 向后兼容
5253 sideEffects : [ '*.css' ] ,
54+ exports : {
55+ '.' : {
56+ types : './types/index.d.ts' ,
57+ import : './index.js' ,
58+ require : './index.js'
59+ } ,
60+ './index.css' : './index.css' ,
61+ './package.json' : './package.json'
62+ } ,
5363 publishConfig : {
5464 access : 'public'
5565 } ,
5666 peerDependencies : {
5767 vue : '^2.6.14'
5868 } ,
5969 dependencies : {
60- '@opentiny/vue-button' : '^2.26.0' ,
61- '@opentiny/vue-checkbox' : '^2.26.0' ,
62- '@opentiny/vue-checkbox-group' : '^2.26.0' ,
63- '@opentiny/vue-date-picker' : '^2.26.0' ,
64- '@opentiny/vue-dropdown' : '^2.26.0' ,
65- '@opentiny/vue-dropdown-item' : '^2.26.0' ,
66- '@opentiny/vue-dropdown-menu' : '^2.26.0' ,
67- '@opentiny/vue-form' : '^2.26.0' ,
68- '@opentiny/vue-form-item' : '^2.26.0' ,
69- '@opentiny/vue-icon' : '^2.26.0' ,
70- '@opentiny/vue-input' : '^2.26.0' ,
71- '@opentiny/vue-loading' : '^2.26.0' ,
72- '@opentiny/vue-option' : '^2.26.0' ,
73- '@opentiny/vue-popover' : '^2.26.0' ,
74- '@opentiny/vue-select' : '^2.26.0' ,
75- '@opentiny/vue-tag' : '^2.26.0' ,
76- '@opentiny/vue-tooltip' : '^2.26.0' ,
77- '@opentiny/vue-common' : '^2.26.0' ,
78- '@opentiny/vue-theme' : '^3.26.0'
70+ '@opentiny/vue' : '^2.28.0' ,
71+ '@opentiny/vue-common' : '^2.28.0' ,
72+ '@opentiny/vue-icon' : '^2.28.0' ,
73+ '@opentiny/vue-theme' : '^3.28.0'
7974 } ,
8075 keywords : packageJson . keywords || [ ] ,
8176 license : packageJson . license ,
@@ -94,33 +89,28 @@ function generateVue2SaasPackageJson() {
9489 main : 'index.js' ,
9590 module : 'index.js' ,
9691 types : 'types/index.d.ts' ,
92+ typings : 'types/index.d.ts' , // 向后兼容
9793 sideEffects : [ '*.css' ] ,
94+ exports : {
95+ '.' : {
96+ types : './types/index.d.ts' ,
97+ import : './index.js' ,
98+ require : './index.js'
99+ } ,
100+ './index.css' : './index.css' ,
101+ './package.json' : './package.json'
102+ } ,
98103 publishConfig : {
99104 access : 'public'
100105 } ,
101106 peerDependencies : {
102107 vue : '^2.6.14'
103108 } ,
104109 dependencies : {
105- '@opentiny/vue-button' : '^2.26.0' ,
106- '@opentiny/vue-checkbox' : '^2.26.0' ,
107- '@opentiny/vue-checkbox-group' : '^2.26.0' ,
108- '@opentiny/vue-date-picker' : '^2.26.0' ,
109- '@opentiny/vue-dropdown' : '^2.26.0' ,
110- '@opentiny/vue-dropdown-item' : '^2.26.0' ,
111- '@opentiny/vue-dropdown-menu' : '^2.26.0' ,
112- '@opentiny/vue-form' : '^2.26.0' ,
113- '@opentiny/vue-form-item' : '^2.26.0' ,
114- '@opentiny/vue-icon' : '^2.26.0' ,
115- '@opentiny/vue-input' : '^2.26.0' ,
116- '@opentiny/vue-loading' : '^2.26.0' ,
117- '@opentiny/vue-option' : '^2.26.0' ,
118- '@opentiny/vue-popover' : '^2.26.0' ,
119- '@opentiny/vue-select' : '^2.26.0' ,
120- '@opentiny/vue-tag' : '^2.26.0' ,
121- '@opentiny/vue-tooltip' : '^2.26.0' ,
122- '@opentiny/vue-common' : '^2.26.0' ,
123- '@opentiny/vue-theme' : '^3.26.0'
110+ '@opentiny/vue' : '^2.28.0' ,
111+ '@opentiny/vue-common' : '^2.28.0' ,
112+ '@opentiny/vue-icon' : '^2.28.0' ,
113+ '@opentiny/vue-theme' : '^3.28.0'
124114 } ,
125115 keywords : packageJson . keywords || [ ] ,
126116 license : packageJson . license ,
@@ -139,33 +129,28 @@ function generateVue3NormalPackageJson() {
139129 main : 'index.js' ,
140130 module : 'index.js' ,
141131 types : 'types/index.d.ts' ,
132+ typings : 'types/index.d.ts' , // 向后兼容
142133 sideEffects : [ '*.css' ] ,
134+ exports : {
135+ '.' : {
136+ types : './types/index.d.ts' ,
137+ import : './index.js' ,
138+ require : './index.js'
139+ } ,
140+ './index.css' : './index.css' ,
141+ './package.json' : './package.json'
142+ } ,
143143 publishConfig : {
144144 access : 'public'
145145 } ,
146146 peerDependencies : {
147147 vue : '^3.0.0'
148148 } ,
149149 dependencies : {
150- '@opentiny/vue-button' : '^3.26.0' ,
151- '@opentiny/vue-checkbox' : '^3.26.0' ,
152- '@opentiny/vue-checkbox-group' : '^3.26.0' ,
153- '@opentiny/vue-date-picker' : '^3.26.0' ,
154- '@opentiny/vue-dropdown' : '^3.26.0' ,
155- '@opentiny/vue-dropdown-item' : '^3.26.0' ,
156- '@opentiny/vue-dropdown-menu' : '^3.26.0' ,
157- '@opentiny/vue-form' : '^3.26.0' ,
158- '@opentiny/vue-form-item' : '^3.26.0' ,
159- '@opentiny/vue-icon' : '^3.26.0' ,
160- '@opentiny/vue-input' : '^3.26.0' ,
161- '@opentiny/vue-loading' : '^3.26.0' ,
162- '@opentiny/vue-option' : '^3.26.0' ,
163- '@opentiny/vue-popover' : '^3.26.0' ,
164- '@opentiny/vue-select' : '^3.26.0' ,
165- '@opentiny/vue-tag' : '^3.26.0' ,
166- '@opentiny/vue-tooltip' : '^3.26.0' ,
167- '@opentiny/vue-common' : '^3.26.0' ,
168- '@opentiny/vue-theme' : '^3.26.0'
150+ '@opentiny/vue' : '^3.28.0' ,
151+ '@opentiny/vue-common' : '^3.28.0' ,
152+ '@opentiny/vue-icon' : '^3.28.0' ,
153+ '@opentiny/vue-theme' : '^3.28.0'
169154 } ,
170155 keywords : packageJson . keywords || [ ] ,
171156 license : packageJson . license ,
@@ -184,33 +169,28 @@ function generateVue3SaasPackageJson() {
184169 main : 'index.js' ,
185170 module : 'index.js' ,
186171 types : 'types/index.d.ts' ,
172+ typings : 'types/index.d.ts' , // 向后兼容
187173 sideEffects : [ '*.css' ] ,
174+ exports : {
175+ '.' : {
176+ types : './types/index.d.ts' ,
177+ import : './index.js' ,
178+ require : './index.js'
179+ } ,
180+ './index.css' : './index.css' ,
181+ './package.json' : './package.json'
182+ } ,
188183 publishConfig : {
189184 access : 'public'
190185 } ,
191186 peerDependencies : {
192187 vue : '^3.0.0'
193188 } ,
194189 dependencies : {
195- '@opentiny/vue-button' : '^3.26.0' ,
196- '@opentiny/vue-checkbox' : '^3.26.0' ,
197- '@opentiny/vue-checkbox-group' : '^3.26.0' ,
198- '@opentiny/vue-date-picker' : '^3.26.0' ,
199- '@opentiny/vue-dropdown' : '^3.26.0' ,
200- '@opentiny/vue-dropdown-item' : '^3.26.0' ,
201- '@opentiny/vue-dropdown-menu' : '^3.26.0' ,
202- '@opentiny/vue-form' : '^3.26.0' ,
203- '@opentiny/vue-form-item' : '^3.26.0' ,
204- '@opentiny/vue-icon' : '^3.26.0' ,
205- '@opentiny/vue-input' : '^3.26.0' ,
206- '@opentiny/vue-loading' : '^3.26.0' ,
207- '@opentiny/vue-option' : '^3.26.0' ,
208- '@opentiny/vue-popover' : '^3.26.0' ,
209- '@opentiny/vue-select' : '^3.26.0' ,
210- '@opentiny/vue-tag' : '^3.26.0' ,
211- '@opentiny/vue-tooltip' : '^3.26.0' ,
212- '@opentiny/vue-common' : '^3.26.0' ,
213- '@opentiny/vue-theme' : '^3.26.0'
190+ '@opentiny/vue' : '^3.28.0' ,
191+ '@opentiny/vue-common' : '^3.28.0' ,
192+ '@opentiny/vue-icon' : '^3.28.0' ,
193+ '@opentiny/vue-theme' : '^3.28.0'
214194 } ,
215195 keywords : packageJson . keywords || [ ] ,
216196 license : packageJson . license ,
0 commit comments