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

Publish types regularly to NPM #282

Closed
dcollien opened this issue Jan 30, 2020 · 3 comments
Closed

Publish types regularly to NPM #282

dcollien opened this issue Jan 30, 2020 · 3 comments
Assignees

Comments

@dcollien
Copy link

dcollien commented Jan 30, 2020

The last publish of @azure/functions to NPM was reportedly 9 months ago:
https://www.npmjs.com/package/@azure/functions

NPM: v1.0.3
Current: v1.2.0

As such, newer updates (e.g. Cookies typedef) are not available

It'd be great if there was a more frequent publish schedule for this NPM package to keep it up to date with what's in the repo.

Repro steps

e.g.
import { Cookie } from "@azure/functions"
reports:
node_modules/@azure/functions/Interfaces"' has no exported member 'Cookie'.

Known workarounds

Referencing the git repo instead of NPM package in package.json might work?

or copy-pasting the typedefs out of the source code into your own module definitions, if you're so inclined (🤢)

@dcollien
Copy link
Author

N.B. I'm unable to work out how to reference the subdir in package.json, this is as far as I got with NPM: npm/npm#2974
and with yarn: yarnpkg/yarn#4725 to no avail.

A method like: https://github.com/ramasilveyra/gitpkg looks like a potential solution, if there's any reason to hold off from NPM releases, but still making the latest available in your own project via package.json

Is there something I'm missing?

@mhoeger
Copy link
Contributor

mhoeger commented Feb 14, 2020

@dcollien - Oof so sorry! Just published a newer version and keeping this issue to track adding this to our release flow.

@dcollien
Copy link
Author

Thanks very much Marie!

@mhoeger mhoeger self-assigned this Mar 2, 2020
@mhoeger mhoeger added this to the Functions Sprint 72 milestone Mar 2, 2020
@mhoeger mhoeger closed this as completed Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants