node-harvest icon indicating copy to clipboard operation
node-harvest copied to clipboard

fix: added model export to main module, subdirectory

Open MrStLouis opened this issue 3 years ago • 0 comments

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';
. . .

MrStLouis avatar Jul 01 '22 19:07 MrStLouis