Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

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

Open
MrStLouis wants to merge 1 commit intosimplyspoke:masterfrom
MrStLouis:master
Open

fix: added model export to main module, subdirectory#538
MrStLouis wants to merge 1 commit intosimplyspoke:masterfrom
MrStLouis:master

Conversation

@MrStLouis
Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant