Skip to content

Commit 810160c

Browse files
committed
fix #635; untildify
1 parent f5f6152 commit 810160c

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"send": "^0.18.0",
7373
"tar-stream": "^3.1.6",
7474
"tsx": "~4.2.1",
75+
"untildify": "^5.0.0",
7576
"ws": "^8.14.2"
7677
},
7778
"devDependencies": {

src/create.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {setTimeout as sleep} from "node:timers/promises";
66
import {fileURLToPath} from "node:url";
77
import {promisify} from "node:util";
88
import * as clack from "@clack/prompts";
9+
import untildify from "untildify";
910
import type {ClackEffects} from "./clack.js";
1011
import {cyan, inverse, reset, underline} from "./tty.js";
1112

@@ -83,6 +84,7 @@ export async function create(options = {}, effects: CreateEffects = defaultEffec
8384
message: "Initialize git repository?"
8485
}),
8586
installing: async ({results: {rootPath, projectTitle, includeSampleFiles, packageManager, initializeGit}}) => {
87+
rootPath = untildify(rootPath!);
8688
const s = clack.spinner();
8789
s.start("Copying template files");
8890
const template = includeSampleFiles ? "default" : "empty";

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3480,6 +3480,11 @@ untildify@^4.0.0:
34803480
resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b"
34813481
integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==
34823482

3483+
untildify@^5.0.0:
3484+
version "5.0.0"
3485+
resolved "https://registry.yarnpkg.com/untildify/-/untildify-5.0.0.tgz#3e40c5dd67518cb8582a027b78d3c2747234f921"
3486+
integrity sha512-bOgQLUnd2G5rhzaTvh1VCI9Fo6bC5cLTpH17T5aFfamyXFYDbbdzN6IXdeoc3jBS7T9hNTmJtYUzJCJ2Xlc9gA==
3487+
34833488
uri-js@^4.2.2:
34843489
version "4.4.1"
34853490
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"

0 commit comments

Comments
 (0)