Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Major release: 2.0 #6

Merged
merged 53 commits into from
Nov 14, 2016
Merged

Major release: 2.0 #6

merged 53 commits into from
Nov 14, 2016

Conversation

nozzlegear
Copy link
Owner

This release restructures the lib's exports and TypeScript definitions, and also adds support for Shopify's Orders API.

Typescript can't pick up custom modules (e.g. declare module 'shopify-prime/models') when installed in another project. Unfortunately declarations need to be imported as objects into the main definition file to be compile and picked up correctly.

See also: http:https://stackoverflow.com/questions/40308986/how-do-i-include-extra-typescript-declarations-when-i-publish-my-package-to-npm
Including these exports would also include them in the generated js file. Because these exports were only TS interfaces and not real js objects, node would immediately throw an error because it couldn't find any corresponding module for them.
@nozzlegear nozzlegear merged commit cdd8fd1 into master Nov 14, 2016
@nozzlegear nozzlegear deleted the 2.0 branch November 14, 2016 20:49
@dcworldwide
Copy link
Contributor

Whoa, quite the update. I was about to submit a PR with my changes before I realised the extent of changes you've made. We've actually made a lot of the same changes when upgrading to ts 2.x. PR should land soon.

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.

None yet

2 participants