Closed mioe closed 3 years ago
Someone from TS land may have to jump in here... there is a vue.ts.d
file and package.json has a types
key... or is the problem again perhaps just the pesky files
key?
That's my fault, I copy&pasted the filenames in package.json but forgot tsc generates vue.d.ts
instead of highlightjs-vue.d.ts
tsc generates vue.d.ts instead of highlightjs-vue.d.ts
Why the naming discrepancy, that seems a bit strange, no?
tsc generates based on the source file name (vue.ts
) whereas the js file is named by rollup
Maybe the source file should be renamed?
If that's the only way to do it... I think optimally I'd prefer to just tell it "hey rename this type file when you output it" however that is done, if that is possible. :)
Don't think it's possible because tsc needs to generate a 1:1 mapping with the source files
Want me to update the current open PR with the filename change?
That's my fault, I copy&pasted the filenames in package.json but forgot tsc generates
vue.d.ts
instead ofhighlightjs-vue.d.ts
yes it's all fixed, thanks)
Want me to update the current open PR with the filename change?
Not sure that's necessary if we just update the reference... lets see how that holds up. After your PR should I issue a 2.0.1 probably? @Trinovantes
Yes, please release a 2.0.1 with the corrected type filename
Done.
Could not find a declaration file for module '@highlightjs/vue-plugin'. 'c:/Users/misha/.mi/vite-ts-template/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.min.js' implicitly has an 'any' type. Try
npm i --save-dev @types/highlightjs__vue-plugin
if it exists or add a new declaration (.d.ts) file containingdeclare module '@highlightjs/vue-plugin';
ts(7016)tsconfig.sjon:
package.json: