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

fix: added model export to main module, subdirectory #538

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrStLouis
Copy link

I have added a global export within the main index.ts file as well as adding the dist/models path to the files list in the package.json

This should allow users to import models from main

import Harvest, { Company, EstimateItemCategory } from 'harvest';
. . .

and if its just a model folder that does not require the client

import { Company, EstimateItemCategory } from 'harvest/dist/models';
. . .

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

Successfully merging this pull request may close these issues.

1 participant