Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import the package to use as library? #70

Open
kirill-konshin opened this issue Jan 30, 2025 · 0 comments
Open

How to import the package to use as library? #70

kirill-konshin opened this issue Jan 30, 2025 · 0 comments

Comments

@kirill-konshin
Copy link

In the example https://www.npmjs.com/package/create-ts-index#library-1 the import statement is missing and the package does not seem to export anything:

import * as cti from 'create-ts-index';
console.log(cti); // {default:{}}
// dist/cti.d.ts
export {};

And dist/cti.js is the only JS file in the NPM package... index.d.ts has some exports, but it can't be used since no index.js is present: https://www.npmjs.com/package/create-ts-index?activeTab=code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant