Skip to content

Commit

Permalink
fix: improve inquirer version lock (#9)
Browse files Browse the repository at this point in the history
This commit tries to further hard-code the inquirer version in
package.json by falsely listing it as a direct dependency (instead of as
a peer dependency), in the hopes that this may fix the
`pnpm dlx create-sveltex` and `bunx create-sveltex` commands.

This commit also bumps the create-sveltex version number and updates the
changelog to prepare for publication.

Related issue: #9.
  • Loading branch information
nvlang committed Sep 1, 2024
1 parent 92d9afb commit dfb6a10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 9 additions & 0 deletions extras/create-sveltex/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ Initial release.

- Fixed issue #9 by hard-coding `inquirer` version in `package.json` as a
workaround for https://github.com/plopjs/plop/issues/445.

## [0.1.3] - 2024-09-01

### Fixes

- Try to further hard-code `inquirer` version in `package.json` (this time by
falsely listing it as a direct dependency, instead of a peer dependency),
again as a workaround for https://github.com/plopjs/plop/issues/445, given
that the previous attempt didn't fix the behavior for `pnpm dlx` or `bunx`.
8 changes: 3 additions & 5 deletions extras/create-sveltex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-sveltex",
"version": "0.1.2",
"version": "0.1.3",
"description": "Create a new SvelTeX project",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -58,7 +58,8 @@
"dependencies": {
"minimist": "^1.2.8",
"picocolors": "^1.0.1",
"plop": "^4.0.1"
"plop": "^4.0.1",
"inquirer": "9.3.5"
},
"overrides": {
"node-plop": {
Expand All @@ -67,8 +68,5 @@
},
"resolutions": {
"inquirer": "9.3.5"
},
"peerDependencies": {
"inquirer": "9.3.5"
}
}

0 comments on commit dfb6a10

Please sign in to comment.