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

Why call npm pack on _release folder? #52

Open
jchavarri opened this issue Dec 1, 2019 · 4 comments
Open

Why call npm pack on _release folder? #52

jchavarri opened this issue Dec 1, 2019 · 4 comments

Comments

@jchavarri
Copy link

Out of curiosity. I saw there was a zip in the Release artifact with the same contents as the release itself, which is produced by this script:

- script: "npm pack ."
displayName: "npm pack"
workingDirectory: "_release"

I wonder why that's needed? I personally prefer to have just the folder with the ready-made package, having exclusively the required files to publish.

cc @ulrikstrid

@ulrikstrid
Copy link
Collaborator

It's easier to test that the package worked since you can then publish the package and try to install it on all the platforms as the last step in the pipeline

@jchavarri
Copy link
Author

I see, thanks for clarifying.

In that case, shouldn't that last step be included in the repo to serve as example? Right now, the pipeline setup seems to assume manual publishing, which then requires remembering to remove the zip file manually every time.

@jordwalke
Copy link
Contributor

I think that we actually want to just have the pipelines publish the final packed package, not the outer one. Good catch. PRs welcomed, otherwise I'll eventually get to this.

@jordwalke
Copy link
Contributor

(Packing also strips out other files that are npmignored iirc so I think that might have been one reason).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants