Comments (1)
@frinyvonnick I found the issue and opened a PR: #206
when const packageInfo = await readPkgUp()
is resolved in my repository I get this structure:
packageInfo {
packageJson: {
name: 'test-pwa',
version: '0.1.4',
description: 'testing PWAs',
the node preset expects to see:
packageInfo {
pkg: { ... }
After some investigating I found that newer versions of https://github.com/sindresorhus/read-pkg-up changes the name from pkg
to packageJson
Even though I have never manually installed read-pkg-up, I have the following in my yarn.lock file.
Likely. one of the newer versions are being used when I'm running gitmoji-changelog, and the new naming scheme is not found in the node preset.
read-pkg-up@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02"
integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=
dependencies:
find-up "^1.0.0"
read-pkg "^1.0.0"
read-pkg-up@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=
dependencies:
find-up "^2.0.0"
read-pkg "^2.0.0"
read-pkg-up@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07"
integrity sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=
dependencies:
find-up "^2.0.0"
read-pkg "^3.0.0"
read-pkg-up@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-4.0.0.tgz#1b221c6088ba7799601c808f91161c66e58f8978"
integrity sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==
dependencies:
find-up "^3.0.0"
read-pkg "^3.0.0"
read-pkg-up@^7.0.0, read-pkg-up@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507"
integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==
dependencies:
find-up "^4.1.0"
read-pkg "^5.2.0"
type-fest "^0.8.1"
The PR I submitted, supports both cases without upgrading read-pkg-up.
Alternatively you can lock in the version to force an older compatible version of the package to run.
Or upgrade the package and change the name to only support "packageJson"
from gitmoji-changelog.
Related Issues (20)
- Add a documentation site HOT 4
- Error when running `npx gitmoji-changelog init` HOT 2
- Questions About Workflow HOT 2
- outdated packages has 3 known vulnerabilities. HOT 2
- Error: Whoops, something went wrong HOT 1
- Syntax error "(" unexpected HOT 12
- Syntax error HOT 1
- E2E tests does not pass using node 14
- Dependencies versions are not up to date in gitmoji-changelog-cli
- Is it possible to prevent a section to be createad in the changelog? HOT 3
- [feature] Shell completions
- Docs are down HOT 1
- [Feature] Custom markdown template
- [Feature] Support parsing commit message body
- [feature] pre-commit
- Remove Merge commits from changelog
- 🐛 Support cargo workspace HOT 1
- Run on windows using pnmp dlx generates error
- Unable to run: ERROR:node_bindings.cc(303)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitmoji-changelog.