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

Fixes for correct result of npm publish #276

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

ahocevar
Copy link
Contributor

I noticed that v2.0.0 was not correctly published:

  • The package contains a src/ directory, which should be excluded thanks to .npmignore.
  • The package does not contain a dist-module/ directory, which should be created in the process of npm publish

This pull request fixes both. When merged, v2.0.1 should be published.

@constantinius constantinius merged commit f9aa0c9 into geotiffjs:master Jan 27, 2022
@@ -15,13 +15,13 @@
"jsdelivr": "dist-browser/geotiff.js",
"exports": {
".": {
"import": "./src/geotiff.js",
"import": "./dist-module/geotiff.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an oversight on my part in #269, where I meant to make this change already.

@constantinius
Copy link
Member

Done, v2.0.1 on the way.

"require": "./dist-node/geotiff.js",
"browser": "./dist-browser/geotiff.js"
}
},
"files": [
"src",
"dist-module",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not aware of the impact of the "files" option in #269. Sorry, I should have checked that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind. Thanks for your contribution!

@ahocevar ahocevar deleted the fix-publish branch January 28, 2022 08:52
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

Successfully merging this pull request may close these issues.

2 participants