simplyspoke / node-harvest

Node.js Client API for the Harvest time tracking service
http://simplyspoke.github.io/node-harvest/
MIT License
106 stars 57 forks source link

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

Open MrStLouis opened 2 years ago

MrStLouis commented 2 years ago

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