Skip to content

chore(common): add missing deps and files for npm publish#8588

Merged
mcdurdin merged 2 commits intomasterfrom
chore/common/npm-publish-missing-files-and-deps
Apr 13, 2023
Merged

chore(common): add missing deps and files for npm publish#8588
mcdurdin merged 2 commits intomasterfrom
chore/common/npm-publish-missing-files-and-deps

Conversation

@mcdurdin
Copy link
Copy Markdown
Member

The build/ folder for most packages was missing due to being listed in .gitignore.

Also, @keymanapp/ldml-keyboard-constants package was not being published despite being a dependency of @keymanapp/kmc-keyboard.

Instead of relying on npm's use of .gitignore / .npmignore (which has seriously wonky behaviours), we list the files that should be included in package.json.

NPM Wonky behaviours: it seems that .npmignore causes .gitignore in the same folder to be ignored. But, higher level .gitignore files still affect the files included in the package, which makes specification-by-exclusion painful (negating exclusions, etc). We do not recommend use of .npmignore anywhere for this reason.

@keymanapp-test-bot skip

The build/ folder for most packages was missing due to being listed in
.gitignore.

Also, @keymanapp/ldml-keyboard-constants package was not being published
despite being a dependency of @keymanapp/kmc-keyboard.

Instead of relying on npm's use of .gitignore / .npmignore (which has
seriously wonky behaviours), we list the files that should be included
in package.json.

NPM Wonky behaviours: it seems that .npmignore causes .gitignore in the
same folder to be ignored. But, higher level .gitignore files still
affect the files included in the package, which makes
specification-by-exclusion painful (negating exclusions, etc). We do not
recommend use of .npmignore anywhere for this reason.
@mcdurdin mcdurdin added this to the A17S10 milestone Apr 12, 2023
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot bot commented Apr 12, 2023

Copy link
Copy Markdown
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

Base automatically changed from fix/common/7310-npm-publish-needs-to-hardcode-dep-versions to master April 13, 2023 08:08
@mcdurdin mcdurdin merged commit 076ac4c into master Apr 13, 2023
@mcdurdin mcdurdin deleted the chore/common/npm-publish-missing-files-and-deps branch April 13, 2023 08:08
@keyman-server
Copy link
Copy Markdown
Collaborator

Changes in this pull request will be available for download in Keyman version 17.0.87-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(developer): Deprecate @keymanapp/lexical-model-compiler and publish @keymanapp/kmc* modules on npm when we merge feature-ldml 🙀

3 participants