From dfb6a100fd08127ae40463e7819cbf1fd0db096a Mon Sep 17 00:00:00 2001 From: "N. V. Lang" Date: Sun, 1 Sep 2024 17:58:43 +0200 Subject: [PATCH] fix: improve inquirer version lock (#9) 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. --- extras/create-sveltex/CHANGELOG.md | 9 +++++++++ extras/create-sveltex/package.json | 8 +++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/extras/create-sveltex/CHANGELOG.md b/extras/create-sveltex/CHANGELOG.md index 3c96e80..2c73326 100644 --- a/extras/create-sveltex/CHANGELOG.md +++ b/extras/create-sveltex/CHANGELOG.md @@ -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`. diff --git a/extras/create-sveltex/package.json b/extras/create-sveltex/package.json index e9ece5a..93e5bbc 100644 --- a/extras/create-sveltex/package.json +++ b/extras/create-sveltex/package.json @@ -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", @@ -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": { @@ -67,8 +68,5 @@ }, "resolutions": { "inquirer": "9.3.5" - }, - "peerDependencies": { - "inquirer": "9.3.5" } }