You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package distributes raw TypeScript and lacks JS entrypoints. This has several disadvantages over shipping .js + .d.ts:
Requires TypeScript and compiling from the user.
Affected by the user's TypeScript compiler settings. The result is prone to breaking. Errors like this one might occur due to misaligned TypeScript settings:
ERROR(TypeScript) An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
FILE node_modules/@vaadin-component-factory/vcf-nav/vcf-nav.ts:1:8
> 1 | import './src/vcf-nav.ts';
| ^^^^^^^^^^^^^^^^^^
2 | import './src/vcf-nav-item.ts';
3 |
Missing TypeScript compilation as a validation step when publishing the package. The source here might not be a valid TypeScript after all, and we only know it when the usage breaks elsewhere.
Let us introduce its own tsconfig.json in this repo, add compilation as a publishing step, and distribute compiled .js + .d.ts.
The text was updated successfully, but these errors were encountered:
This package distributes raw TypeScript and lacks JS entrypoints. This has several disadvantages over shipping
.js
+.d.ts
:Let us introduce its own
tsconfig.json
in this repo, add compilation as a publishing step, and distribute compiled.js
+.d.ts
.The text was updated successfully, but these errors were encountered: