@doracli/dora-plugin-define 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -134
- package/lib/esm/index.js +1 -131
- package/lib/type/index.d.ts +3 -11
- package/package.json +3 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1,134 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 插件定义
|
|
5
|
-
* @param plugin 插件定义对象
|
|
6
|
-
* @returns 插件定义对象
|
|
7
|
-
*/
|
|
8
|
-
var PluginDefine = function PluginDefine(plugin) {
|
|
9
|
-
return plugin;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
function _arrayLikeToArray(r, a) {
|
|
13
|
-
(null == a || a > r.length) && (a = r.length);
|
|
14
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
15
|
-
return n;
|
|
16
|
-
}
|
|
17
|
-
function _arrayWithoutHoles(r) {
|
|
18
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
19
|
-
}
|
|
20
|
-
function _classCallCheck(a, n) {
|
|
21
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
22
|
-
}
|
|
23
|
-
function _defineProperties(e, r) {
|
|
24
|
-
for (var t = 0; t < r.length; t++) {
|
|
25
|
-
var o = r[t];
|
|
26
|
-
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function _createClass(e, r, t) {
|
|
30
|
-
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
31
|
-
writable: false
|
|
32
|
-
}), e;
|
|
33
|
-
}
|
|
34
|
-
function _defineProperty(e, r, t) {
|
|
35
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
|
-
value: t,
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true,
|
|
39
|
-
writable: true
|
|
40
|
-
}) : e[r] = t, e;
|
|
41
|
-
}
|
|
42
|
-
function _iterableToArray(r) {
|
|
43
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
44
|
-
}
|
|
45
|
-
function _nonIterableSpread() {
|
|
46
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
47
|
-
}
|
|
48
|
-
function ownKeys(e, r) {
|
|
49
|
-
var t = Object.keys(e);
|
|
50
|
-
if (Object.getOwnPropertySymbols) {
|
|
51
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
52
|
-
r && (o = o.filter(function (r) {
|
|
53
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
54
|
-
})), t.push.apply(t, o);
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
function _objectSpread2(e) {
|
|
59
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
60
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
61
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
62
|
-
_defineProperty(e, r, t[r]);
|
|
63
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
64
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return e;
|
|
68
|
-
}
|
|
69
|
-
function _toConsumableArray(r) {
|
|
70
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
71
|
-
}
|
|
72
|
-
function _toPrimitive(t, r) {
|
|
73
|
-
if ("object" != typeof t || !t) return t;
|
|
74
|
-
var e = t[Symbol.toPrimitive];
|
|
75
|
-
if (void 0 !== e) {
|
|
76
|
-
var i = e.call(t, r);
|
|
77
|
-
if ("object" != typeof i) return i;
|
|
78
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
79
|
-
}
|
|
80
|
-
return (String )(t);
|
|
81
|
-
}
|
|
82
|
-
function _toPropertyKey(t) {
|
|
83
|
-
var i = _toPrimitive(t, "string");
|
|
84
|
-
return "symbol" == typeof i ? i : i + "";
|
|
85
|
-
}
|
|
86
|
-
function _unsupportedIterableToArray(r, a) {
|
|
87
|
-
if (r) {
|
|
88
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
89
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
90
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var PluginDefineJsonGenerator = /*#__PURE__*/function () {
|
|
95
|
-
function PluginDefineJsonGenerator(defaultJson) {
|
|
96
|
-
_classCallCheck(this, PluginDefineJsonGenerator);
|
|
97
|
-
_defineProperty(this, "json", {
|
|
98
|
-
defineVersion: 'V1',
|
|
99
|
-
depends: [],
|
|
100
|
-
scripts: '',
|
|
101
|
-
styles: ''
|
|
102
|
-
});
|
|
103
|
-
this.json = _objectSpread2(_objectSpread2({}, this.json), defaultJson);
|
|
104
|
-
}
|
|
105
|
-
return _createClass(PluginDefineJsonGenerator, [{
|
|
106
|
-
key: "update",
|
|
107
|
-
value: function update(json) {
|
|
108
|
-
this.json = _objectSpread2(_objectSpread2({}, this.json), json);
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
key: "updateDepends",
|
|
112
|
-
value: function updateDepends(depends) {
|
|
113
|
-
var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
114
|
-
if (force) {
|
|
115
|
-
this.json.depends = depends;
|
|
116
|
-
} else {
|
|
117
|
-
this.json.depends = [].concat(_toConsumableArray(this.json.depends || []), _toConsumableArray(depends));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "generate",
|
|
122
|
-
value: function generate() {
|
|
123
|
-
return this.json;
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
key: "generateStr",
|
|
127
|
-
value: function generateStr() {
|
|
128
|
-
return JSON.stringify(this.json, null, 2);
|
|
129
|
-
}
|
|
130
|
-
}]);
|
|
131
|
-
}();
|
|
132
|
-
|
|
133
|
-
exports.PluginDefine = PluginDefine;
|
|
134
|
-
exports.PluginDefineJsonGenerator = PluginDefineJsonGenerator;
|
|
1
|
+
"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){r(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function i(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}var a=function(){return t(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"json",{defineVersion:"V1",depends:[],scripts:"",styles:""}),this.json=o(o({},this.json),t)},[{key:"update",value:function(e){this.json=o(o({},this.json),e)}},{key:"updateDepends",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.json.depends=t?e:[].concat(i(this.json.depends||[]),i(e))}},{key:"generate",value:function(){return this.json}},{key:"generateStr",value:function(){return JSON.stringify(this.json,null,2)}}])}();exports.PluginDefine=function(e){return e},exports.PluginDefineJsonGenerator=a;
|
package/lib/esm/index.js
CHANGED
|
@@ -1,131 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* 插件定义
|
|
3
|
-
* @param plugin 插件定义对象
|
|
4
|
-
* @returns 插件定义对象
|
|
5
|
-
*/
|
|
6
|
-
var PluginDefine = function PluginDefine(plugin) {
|
|
7
|
-
return plugin;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
function _arrayLikeToArray(r, a) {
|
|
11
|
-
(null == a || a > r.length) && (a = r.length);
|
|
12
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
function _arrayWithoutHoles(r) {
|
|
16
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17
|
-
}
|
|
18
|
-
function _classCallCheck(a, n) {
|
|
19
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
20
|
-
}
|
|
21
|
-
function _defineProperties(e, r) {
|
|
22
|
-
for (var t = 0; t < r.length; t++) {
|
|
23
|
-
var o = r[t];
|
|
24
|
-
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _createClass(e, r, t) {
|
|
28
|
-
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
29
|
-
writable: false
|
|
30
|
-
}), e;
|
|
31
|
-
}
|
|
32
|
-
function _defineProperty(e, r, t) {
|
|
33
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
34
|
-
value: t,
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true
|
|
38
|
-
}) : e[r] = t, e;
|
|
39
|
-
}
|
|
40
|
-
function _iterableToArray(r) {
|
|
41
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
42
|
-
}
|
|
43
|
-
function _nonIterableSpread() {
|
|
44
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45
|
-
}
|
|
46
|
-
function ownKeys(e, r) {
|
|
47
|
-
var t = Object.keys(e);
|
|
48
|
-
if (Object.getOwnPropertySymbols) {
|
|
49
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
50
|
-
r && (o = o.filter(function (r) {
|
|
51
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
52
|
-
})), t.push.apply(t, o);
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
}
|
|
56
|
-
function _objectSpread2(e) {
|
|
57
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
58
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
59
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
60
|
-
_defineProperty(e, r, t[r]);
|
|
61
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
62
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return e;
|
|
66
|
-
}
|
|
67
|
-
function _toConsumableArray(r) {
|
|
68
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
69
|
-
}
|
|
70
|
-
function _toPrimitive(t, r) {
|
|
71
|
-
if ("object" != typeof t || !t) return t;
|
|
72
|
-
var e = t[Symbol.toPrimitive];
|
|
73
|
-
if (void 0 !== e) {
|
|
74
|
-
var i = e.call(t, r);
|
|
75
|
-
if ("object" != typeof i) return i;
|
|
76
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
77
|
-
}
|
|
78
|
-
return (String )(t);
|
|
79
|
-
}
|
|
80
|
-
function _toPropertyKey(t) {
|
|
81
|
-
var i = _toPrimitive(t, "string");
|
|
82
|
-
return "symbol" == typeof i ? i : i + "";
|
|
83
|
-
}
|
|
84
|
-
function _unsupportedIterableToArray(r, a) {
|
|
85
|
-
if (r) {
|
|
86
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
87
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
88
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
var PluginDefineJsonGenerator = /*#__PURE__*/function () {
|
|
93
|
-
function PluginDefineJsonGenerator(defaultJson) {
|
|
94
|
-
_classCallCheck(this, PluginDefineJsonGenerator);
|
|
95
|
-
_defineProperty(this, "json", {
|
|
96
|
-
defineVersion: 'V1',
|
|
97
|
-
depends: [],
|
|
98
|
-
scripts: '',
|
|
99
|
-
styles: ''
|
|
100
|
-
});
|
|
101
|
-
this.json = _objectSpread2(_objectSpread2({}, this.json), defaultJson);
|
|
102
|
-
}
|
|
103
|
-
return _createClass(PluginDefineJsonGenerator, [{
|
|
104
|
-
key: "update",
|
|
105
|
-
value: function update(json) {
|
|
106
|
-
this.json = _objectSpread2(_objectSpread2({}, this.json), json);
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
key: "updateDepends",
|
|
110
|
-
value: function updateDepends(depends) {
|
|
111
|
-
var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
112
|
-
if (force) {
|
|
113
|
-
this.json.depends = depends;
|
|
114
|
-
} else {
|
|
115
|
-
this.json.depends = [].concat(_toConsumableArray(this.json.depends || []), _toConsumableArray(depends));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: "generate",
|
|
120
|
-
value: function generate() {
|
|
121
|
-
return this.json;
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "generateStr",
|
|
125
|
-
value: function generateStr() {
|
|
126
|
-
return JSON.stringify(this.json, null, 2);
|
|
127
|
-
}
|
|
128
|
-
}]);
|
|
129
|
-
}();
|
|
130
|
-
|
|
131
|
-
export { PluginDefine, PluginDefineJsonGenerator };
|
|
1
|
+
var e=function(e){return e};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}var c=function(){return r(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"json",{defineVersion:"V1",depends:[],scripts:"",styles:""}),this.json=i(i({},this.json),t)},[{key:"update",value:function(e){this.json=i(i({},this.json),e)}},{key:"updateDepends",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.json.depends=t?e:[].concat(u(this.json.depends||[]),u(e))}},{key:"generate",value:function(){return this.json}},{key:"generateStr",value:function(){return JSON.stringify(this.json,null,2)}}])}();export{e as PluginDefine,c as PluginDefineJsonGenerator};
|
package/lib/type/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ type TPluginDefine = {
|
|
|
22
22
|
*/
|
|
23
23
|
declare const PluginDefine: (plugin: TPluginDefine) => TPluginDefine;
|
|
24
24
|
|
|
25
|
-
type TDependDefineItem
|
|
25
|
+
type TDependDefineItem = {
|
|
26
26
|
name: string;
|
|
27
27
|
useName: string;
|
|
28
28
|
version?: string;
|
|
@@ -36,7 +36,7 @@ type TPluginDefineJsonV1 = {
|
|
|
36
36
|
/** 插件代码 */
|
|
37
37
|
pluginCode?: string;
|
|
38
38
|
/** 插件依赖 */
|
|
39
|
-
depends?: TDependDefineItem
|
|
39
|
+
depends?: TDependDefineItem[];
|
|
40
40
|
/** 插件脚本 */
|
|
41
41
|
scripts?: {
|
|
42
42
|
viewer?: string;
|
|
@@ -53,14 +53,6 @@ type TPluginDefineJsonV1 = {
|
|
|
53
53
|
|
|
54
54
|
type TPluginDefineJson = TPluginDefineJsonV1;
|
|
55
55
|
|
|
56
|
-
type TDependDefineItem = {
|
|
57
|
-
name: string;
|
|
58
|
-
useName: string;
|
|
59
|
-
version?: string;
|
|
60
|
-
url?: string;
|
|
61
|
-
type?: 'script' | 'style';
|
|
62
|
-
};
|
|
63
|
-
|
|
64
56
|
declare class PluginDefineJsonGenerator {
|
|
65
57
|
private json;
|
|
66
58
|
constructor(defaultJson: Partial<TPluginDefineJson>);
|
|
@@ -71,4 +63,4 @@ declare class PluginDefineJsonGenerator {
|
|
|
71
63
|
}
|
|
72
64
|
|
|
73
65
|
export { PluginDefine, PluginDefineJsonGenerator };
|
|
74
|
-
export type { TDependDefineItem
|
|
66
|
+
export type { TDependDefineItem, TPluginDefine, TPluginDefineJson, TPluginDefineJsonV1 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doracli/dora-plugin-define",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "dora-plugin-define 用于插件化开发",
|
|
5
5
|
"author": "cclr <18843152354@163.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
"require": "./lib/cjs/index.js"
|
|
12
12
|
},
|
|
13
13
|
"types": "lib/type/index.d.ts",
|
|
14
|
-
"bin": {
|
|
15
|
-
"dorap": "bin/enter.mjs"
|
|
16
|
-
},
|
|
17
14
|
"directories": {
|
|
18
15
|
"lib": "lib"
|
|
19
16
|
},
|
|
@@ -30,11 +27,11 @@
|
|
|
30
27
|
"g:build": "drr build"
|
|
31
28
|
},
|
|
32
29
|
"dependencies": {
|
|
33
|
-
"@cclr/lang": "^0.1.
|
|
30
|
+
"@cclr/lang": "^0.1.50"
|
|
34
31
|
},
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@types/react": "^18.3.27",
|
|
37
34
|
"@types/react-dom": "^18.3.7"
|
|
38
35
|
},
|
|
39
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "b387668fa2986c56f245bc53bcb7072fd53b62e1"
|
|
40
37
|
}
|