@omnia/tooling-vue 8.0.248-dev → 8.0.249-dev
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.
|
@@ -121,6 +121,7 @@ exports.generateComponentTypingsAndDoc = generateComponentTypingsAndDoc;
|
|
|
121
121
|
function generateWebComponentTypings(wc, template, info, elementNamespace) {
|
|
122
122
|
// export default defineVueWebComponent
|
|
123
123
|
const wcPath = wc.componentOptions.entryPointPath;
|
|
124
|
+
const skipElementNameTypings = (0, shared_1.getBuildOption)()?.skipElementNameTypings || [];
|
|
124
125
|
let content = fsExtra.readFileSync(wcPath, 'utf8');
|
|
125
126
|
if (content.indexOf("defineVueComponent") > -1) {
|
|
126
127
|
if (!new RegExp('export\\s+default\\s+').test(content)) {
|
|
@@ -156,6 +157,11 @@ function generateWebComponentTypings(wc, template, info, elementNamespace) {
|
|
|
156
157
|
throw new Error("Exit, have an exception.");
|
|
157
158
|
}
|
|
158
159
|
}
|
|
160
|
+
if (skipElementNameTypings.indexOf(wc.componentOptions.elementName) > -1) {
|
|
161
|
+
return template
|
|
162
|
+
.replace(/\/\/{{importWC}}/, `import ${friendlyManifestId} from '${importPath}';
|
|
163
|
+
//{{importWC}}`);
|
|
164
|
+
}
|
|
159
165
|
return template
|
|
160
166
|
.replace(/\/\/{{importWC}}/, `import ${friendlyManifestId} from '${importPath}';
|
|
161
167
|
//{{importWC}}`)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/tooling-vue",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.249-dev",
|
|
5
5
|
"description": "Used to bundle and serve manifests web component that build on Vue framework.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Precio Fishbone",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx-models": "8.0.
|
|
23
|
-
"@omnia/tooling-composers": "8.0.
|
|
22
|
+
"@omnia/fx-models": "8.0.249-dev",
|
|
23
|
+
"@omnia/tooling-composers": "8.0.249-dev",
|
|
24
24
|
"@types/mousetrap": "1.5.34",
|
|
25
25
|
"@types/quill": "1.3.6",
|
|
26
26
|
"@types/zepto": "1.0.29",
|