vue-component-meta 0.40.2 → 0.40.3
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/out/index.js +2 -5
- package/package.json +3 -3
package/out/index.js
CHANGED
|
@@ -29,7 +29,7 @@ function createComponentMetaChecker(tsconfigPath, checkerOptions = {}) {
|
|
|
29
29
|
exports.createComponentMetaChecker = createComponentMetaChecker;
|
|
30
30
|
function createComponentMetaCheckerBase(tsconfigPath, parsedCommandLine, checkerOptions) {
|
|
31
31
|
const scriptSnapshot = {};
|
|
32
|
-
const globalComponentName = tsconfigPath.replace(/\\/g, '/') + '.global.
|
|
32
|
+
const globalComponentName = tsconfigPath.replace(/\\/g, '/') + '.global.vue';
|
|
33
33
|
const host = Object.assign(Object.assign({}, ts.sys), { getDefaultLibFileName: (options) => ts.getDefaultLibFilePath(options), useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames, getCompilationSettings: () => parsedCommandLine.options, getScriptFileNames: () => {
|
|
34
34
|
return [
|
|
35
35
|
...parsedCommandLine.fileNames,
|
|
@@ -44,10 +44,7 @@ function createComponentMetaCheckerBase(tsconfigPath, parsedCommandLine, checker
|
|
|
44
44
|
fileText = getMetaScriptContent(fileName);
|
|
45
45
|
}
|
|
46
46
|
else if (fileName === globalComponentName) {
|
|
47
|
-
fileText =
|
|
48
|
-
import { defineComponent } from 'vue';
|
|
49
|
-
export default defineComponent({});
|
|
50
|
-
`;
|
|
47
|
+
fileText = `<script setup lang="ts"></script>`;
|
|
51
48
|
}
|
|
52
49
|
else {
|
|
53
50
|
fileText = ts.sys.readFile(fileName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.3",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"directory": "packages/vue-component-meta"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/vue-language-core": "0.40.
|
|
16
|
+
"@volar/vue-language-core": "0.40.3"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"typescript": "*"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "51eca3c36ac576626807e6093f56994dc2e6a4ce"
|
|
22
22
|
}
|